Kaydet (Commit) 6cac4f8a authored tarafından Herbert Dürr's avatar Herbert Dürr

#i122378# replace std::iota() with open code

üst 94e21830
......@@ -297,7 +297,8 @@ namespace vclcanvas
{
// source already has alpha channel - 1:1 mapping,
// i.e. aAlphaMap[0]=0,...,aAlphaMap[255]=255.
::std::iota( aAlphaMap, &aAlphaMap[256], 0 );
sal_uInt8* p = aAlphaMap;
for( int n = 0; n < 256; ++n) *(p++) = n;
}
else
{
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment