Author: hdu
Date: Mon May 27 11:34:50 2013
New Revision: 1486585

URL: http://svn.apache.org/r1486585
Log:
#i122378# replace std::iota() with open code

Modified:
    openoffice/trunk/main/canvas/source/vcl/impltools.cxx
    openoffice/trunk/main/sc/source/core/data/global.cxx

Modified: openoffice/trunk/main/canvas/source/vcl/impltools.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/canvas/source/vcl/impltools.cxx?rev=1486585&r1=1486584&r2=1486585&view=diff
==============================================================================
--- openoffice/trunk/main/canvas/source/vcl/impltools.cxx (original)
+++ openoffice/trunk/main/canvas/source/vcl/impltools.cxx Mon May 27 11:34:50 
2013
@@ -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
                 {

Modified: openoffice/trunk/main/sc/source/core/data/global.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sc/source/core/data/global.cxx?rev=1486585&r1=1486584&r2=1486585&view=diff
==============================================================================
--- openoffice/trunk/main/sc/source/core/data/global.cxx (original)
+++ openoffice/trunk/main/sc/source/core/data/global.cxx Mon May 27 11:34:50 
2013
@@ -1680,7 +1680,9 @@ void ScFuncDesc::fillVisibleArgumentMapp
     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);


Reply via email to