diff options
Diffstat (limited to 'vcl/source/filter/GraphicNativeMetadata.cxx')
-rw-r--r-- | vcl/source/filter/GraphicNativeMetadata.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/filter/GraphicNativeMetadata.cxx b/vcl/source/filter/GraphicNativeMetadata.cxx index 6503774a34b6..532e2d4284ab 100644 --- a/vcl/source/filter/GraphicNativeMetadata.cxx +++ b/vcl/source/filter/GraphicNativeMetadata.cxx @@ -22,7 +22,7 @@ #include <vcl/gfxlink.hxx> #include "jpeg/Exif.hxx" -#include <boost/scoped_array.hpp> +#include <memory> GraphicNativeMetadata::GraphicNativeMetadata() : mRotation(0) @@ -38,7 +38,7 @@ bool GraphicNativeMetadata::read(Graphic& rGraphic) if ( aLink.GetType() != GFX_LINK_TYPE_NATIVE_JPG ) return false; sal_uInt32 aDataSize = aLink.GetDataSize(); - boost::scoped_array<sal_uInt8> aBuffer(new sal_uInt8[aDataSize]); + std::unique_ptr<sal_uInt8[]> aBuffer(new sal_uInt8[aDataSize]); memcpy(aBuffer.get(), aLink.GetData(), aDataSize); SvMemoryStream aMemoryStream(aBuffer.get(), aDataSize, StreamMode::READ); |