diff options
author | Thorsten Behrens <thb@documentfoundation.org> | 2014-04-15 21:31:00 +0200 |
---|---|---|
committer | Thorsten Behrens <thb@documentfoundation.org> | 2014-04-15 21:57:56 +0200 |
commit | 3764cfbc69815e5e74a689a5aeb07b0668ee861f (patch) | |
tree | 25b2543eb980929faa72b6a1301c00284ed3e7d6 /canvas | |
parent | 0ae0301d1cd6e690473f932411ca880c20f45e13 (diff) |
Remove iota template function & last call site.
Nice function, but with just one place using it in 9 years best
coded verbatim at the call site...
Change-Id: Ib306cf2311a39299cb007441c7cb1b0d81e67bce
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/vcl/impltools.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/canvas/source/vcl/impltools.cxx b/canvas/source/vcl/impltools.cxx index d46ac3247861..4a5091dcfbd6 100644 --- a/canvas/source/vcl/impltools.cxx +++ b/canvas/source/vcl/impltools.cxx @@ -48,7 +48,6 @@ #include <basegfx/numeric/ftools.hxx> #include <canvas/canvastools.hxx> -#include <o3tl/compat_functional.hxx> #include "impltools.hxx" #include "canvasbitmap.hxx" @@ -281,7 +280,11 @@ namespace vclcanvas { // source already has alpha channel - 1:1 mapping, // i.e. aAlphaMap[0]=0,...,aAlphaMap[255]=255. - ::o3tl::iota( aAlphaMap, &aAlphaMap[256], 0 ); + sal_uInt8 val=0; + sal_uInt8* pCur=aAlphaMap; + sal_uInt8* const pEnd=&aAlphaMap[256]; + while(pCur != pEnd) + *pCur++ = val++; } else { |