summaryrefslogtreecommitdiff
path: root/sd/source/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-11 17:14:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-12 08:27:29 +0200
commitacde273ea8b105ed5cc7adec98110b822a1b4490 (patch)
tree69348313444bffb5f0d8003e9e97b6773a422e42 /sd/source/filter
parent7140644302d97869c7ea8d636123755fe04e640b (diff)
return SvMemoryStream by std::unique_ptr
Change-Id: I60a41111e76d72a7384cbb15f2d2a73c95af8c2d Reviewed-on: https://gerrit.libreoffice.org/57280 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/filter')
-rw-r--r--sd/source/filter/eppt/eppt.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx
index 2e5818701dda..395fb50b2677 100644
--- a/sd/source/filter/eppt/eppt.cxx
+++ b/sd/source/filter/eppt/eppt.cxx
@@ -1261,7 +1261,7 @@ void PPTWriter::ImplWriteOLE( )
for ( auto it = maExOleObj.begin(); it != maExOleObj.end(); ++it )
{
PPTExOleObjEntry* pPtr = it->get();
- SvMemoryStream* pStrm = nullptr;
+ std::unique_ptr<SvMemoryStream> pStrm;
pPtr->nOfsB = mpStrm->Tell();
switch ( pPtr->eType )
{
@@ -1324,7 +1324,7 @@ void PPTWriter::ImplWriteOLE( )
aZCodec.BeginCompression();
aZCodec.Compress( *pStrm, *mpStrm );
aZCodec.EndCompression();
- delete pStrm;
+ pStrm.reset();
mpPptEscherEx->EndAtom( EPP_ExOleObjStg, 0, 1 );
}
}