diff options
Diffstat (limited to 'svx/source/gallery2/codec.cxx')
-rw-r--r-- | svx/source/gallery2/codec.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/gallery2/codec.cxx b/svx/source/gallery2/codec.cxx index ca4a14e57d7b..40412ed1270f 100644 --- a/svx/source/gallery2/codec.cxx +++ b/svx/source/gallery2/codec.cxx @@ -21,7 +21,7 @@ #include <tools/stream.hxx> #include <tools/zcodec.hxx> #include "codec.hxx" -#include <boost/scoped_array.hpp> +#include <memory> // - GalleryCodec - @@ -98,10 +98,10 @@ void GalleryCodec::Read( SvStream& rStmToRead ) // decompress if( 1 == nVersion ) { - boost::scoped_array<sal_uInt8> pCompressedBuffer(new sal_uInt8[ nCompressedSize ]); + std::unique_ptr<sal_uInt8[]> pCompressedBuffer(new sal_uInt8[ nCompressedSize ]); rStm.Read( pCompressedBuffer.get(), nCompressedSize ); sal_uInt8* pInBuf = pCompressedBuffer.get(); - boost::scoped_array<sal_uInt8> pOutBuf(new sal_uInt8[ nUnCompressedSize ]); + std::unique_ptr<sal_uInt8[]> pOutBuf(new sal_uInt8[ nUnCompressedSize ]); sal_uInt8* pTmpBuf = pOutBuf.get(); sal_uInt8* pLast = pOutBuf.get() + nUnCompressedSize - 1; sal_uIntPtr nIndex = 0UL, nCountByte, nRunByte; |