You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by hd...@apache.org on 2013/05/17 18:41:56 UTC
svn commit: r1483907 -
/openoffice/branches/rejuvenate01/main/sc/source/core/data/global.cxx
Author: hdu
Date: Fri May 17 16:41:56 2013
New Revision: 1483907
URL: http://svn.apache.org/r1483907
Log:
#i122208# restore fillVisibleArgumentMapping() semantic
Modified:
openoffice/branches/rejuvenate01/main/sc/source/core/data/global.cxx
Modified: openoffice/branches/rejuvenate01/main/sc/source/core/data/global.cxx
URL: http://svn.apache.org/viewvc/openoffice/branches/rejuvenate01/main/sc/source/core/data/global.cxx?rev=1483907&r1=1483906&r2=1483907&view=diff
==============================================================================
--- openoffice/branches/rejuvenate01/main/sc/source/core/data/global.cxx (original)
+++ openoffice/branches/rejuvenate01/main/sc/source/core/data/global.cxx Fri May 17 16:41:56 2013
@@ -1677,15 +1677,15 @@ xub_StrLen ScFuncDesc::getSuppressedArgu
//
void ScFuncDesc::fillVisibleArgumentMapping(::std::vector<sal_uInt16>& _rArguments) const
{
- _rArguments.resize( nArgCount);
-
if (!bHasSuppressedArgs || !pDefArgFlags)
{
+ _rArguments.resize( nArgCount);
::std::vector<sal_uInt16>::iterator it = _rArguments.begin();
for( sal_uInt16 n = 0; n < nArgCount; ++n, ++it )
*it = n;
}
+ _rArguments.reserve( nArgCount);
sal_uInt16 nArgs = nArgCount;
if (nArgs >= PAIRED_VAR_ARGS)
nArgs -= PAIRED_VAR_ARGS - 2;