summaryrefslogtreecommitdiff
path: root/canvas
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 /canvas
parent94e218303cdf0fad2862de16bb97063064846059 (diff)
#i122378# replace std::iota() with open code
Notes
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/vcl/impltools.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/canvas/source/vcl/impltools.cxx b/canvas/source/vcl/impltools.cxx
index 63ca62f13a45..e95ee4ba8418 100644
--- a/canvas/source/vcl/impltools.cxx
+++ b/canvas/source/vcl/impltools.cxx
@@ -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
{