summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-05-27 11:34:50 +0000
committerHerbert Dürr <hdu@apache.org>2013-05-27 11:34:50 +0000
commit6cac4f8af5df4fe4d972a9fcef9b6ee4227a3ada (patch)
tree34d831e98137bb2282cea2a4661b0f0a925d00b5 /sc/source
parent94e218303cdf0fad2862de16bb97063064846059 (diff)
#i122378# replace std::iota() with open code
Notes
Notes: prefer: b14a690506b0786083714489099bc995a464df97
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/global.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 8642c306b6f1..79a98c6c9b33 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -1680,7 +1680,9 @@ void ScFuncDesc::fillVisibleArgumentMapping(::std::vector<sal_uInt16>& _rArgumen
if (!bHasSuppressedArgs || !pDefArgFlags)
{
_rArguments.resize( nArgCount);
- ::std::iota( _rArguments.begin(), _rArguments.end(), 0);
+ ::std::vector<sal_uInt16>::iterator it = _rArguments.begin();
+ for( sal_uInt16 n = 0; n < nArgCount; ++n, ++it )
+ *it = n;
}
_rArguments.reserve( nArgCount);