[Libreoffice-commits] .: sc/source
Fridrich Strba
fridrich at kemper.freedesktop.org
Tue Feb 8 00:09:00 PST 2011
sc/source/core/data/funcdesc.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 891131ec80c83a05030c9459af1d2b8cceea3e52
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Mon Feb 7 14:04:36 2011 +0100
rewrite the one use of std::iota
diff --git a/sc/source/core/data/funcdesc.cxx b/sc/source/core/data/funcdesc.cxx
index 9d48db7..111c2da 100644
--- a/sc/source/core/data/funcdesc.cxx
+++ b/sc/source/core/data/funcdesc.cxx
@@ -297,7 +297,10 @@ 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 iter = _rArguments.begin();
+ sal_uInt16 value = 0;
+ while (iter != _rArguments.end())
+ *iter++ = value++;
}
_rArguments.reserve( nArgCount);
More information about the Libreoffice-commits
mailing list