summaryrefslogtreecommitdiffstats
path: root/vcl/source/gdi/pdfwriter_impl.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl.hxx')
-rw-r--r--vcl/source/gdi/pdfwriter_impl.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.hxx b/vcl/source/gdi/pdfwriter_impl.hxx
index e6c28558f742..979571f6e430 100644
--- a/vcl/source/gdi/pdfwriter_impl.hxx
+++ b/vcl/source/gdi/pdfwriter_impl.hxx
@@ -223,7 +223,8 @@ public:
struct JPGEmit
{
BitmapID m_aID;
- SvMemoryStream* m_pStream;
+ std::unique_ptr<SvMemoryStream>
+ m_pStream;
Bitmap m_aMask;
sal_Int32 m_nObject;
bool m_bTrueColor;
@@ -234,7 +235,8 @@ public:
, m_bTrueColor(false)
{
}
- ~JPGEmit() { delete m_pStream; }
+ JPGEmit(const JPGEmit&) = delete; // to keep MSVC2013 happy
+ JPGEmit(JPGEmit&&); // to keep MSVC2013 happy
};
struct GradientEmit