From 6cac4f8af5df4fe4d972a9fcef9b6ee4227a3ada Mon Sep 17 00:00:00 2001
From: Herbert Dürr <hdu@apache.org>
Date: Mon, 27 May 2013 11:34:50 +0000
Subject: #i122378# replace std::iota() with open code

---
 sc/source/core/data/global.cxx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'sc/source')

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);
-- 
cgit