diff options
Diffstat (limited to 'vcl/source/gdi/pngwrite.cxx')
-rw-r--r-- | vcl/source/gdi/pngwrite.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/pngwrite.cxx b/vcl/source/gdi/pngwrite.cxx index 01ff6fe5be9b..898a69730ec3 100644 --- a/vcl/source/gdi/pngwrite.cxx +++ b/vcl/source/gdi/pngwrite.cxx @@ -29,7 +29,7 @@ #include <vcl/svapp.hxx> #include <vcl/alpha.hxx> #include <osl/endian.h> -#include <boost/scoped_array.hpp> +#include <memory> #define PNG_DEF_COMPRESSION 6 @@ -329,7 +329,7 @@ bool PNGWriterImpl::ImplWriteHeader() void PNGWriterImpl::ImplWritePalette() { const sal_uLong nCount = mpAccess->GetPaletteEntryCount(); - boost::scoped_array<sal_uInt8> pTempBuf(new sal_uInt8[nCount * 3]); + std::unique_ptr<sal_uInt8[]> pTempBuf(new sal_uInt8[nCount * 3]); sal_uInt8* pTmp = pTempBuf.get(); ImplOpenChunk(PNGCHUNK_PLTE); |