diff options
-rw-r--r-- | include/basegfx/raster/bpixelraster.hxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/basegfx/raster/bpixelraster.hxx b/include/basegfx/raster/bpixelraster.hxx index 42620c7c01d7..b3f168754a8f 100644 --- a/include/basegfx/raster/bpixelraster.hxx +++ b/include/basegfx/raster/bpixelraster.hxx @@ -42,21 +42,13 @@ namespace basegfx std::unique_ptr<BPixel[]> mpContent; public: - // reset - void reset() - { - memset(mpContent.get(), 0, sizeof(BPixel) * mnCount); - } - // constructor/destructor BPixelRaster(sal_uInt32 nWidth, sal_uInt32 nHeight) : mnWidth(nWidth), mnHeight(nHeight), mnCount(nWidth * nHeight), mpContent(new BPixel[mnCount]) - { - reset(); - } + {} // coordinate calcs between X/Y and span sal_uInt32 getIndexFromXY(sal_uInt32 nX, sal_uInt32 nY) const { return (nX + (nY * mnWidth)); } |