diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-01-19 19:59:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-20 07:43:42 +0100 |
commit | 08340089c550ce8f2a68ba33bd7c33ac9dee1b1f (patch) | |
tree | cc1d3df270e11ba19734f84f0a7676b7eddb1f7d /vcl/source/gdi/cvtgrf.cxx | |
parent | 3d3a0c412500a2b57ff1d49f05506ee62ef9d4c7 (diff) |
use unique_ptr for GraphicConverter
Change-Id: If2651d03eb878c499dd5e21df479dcdbcaf93987
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109653
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi/cvtgrf.cxx')
-rw-r--r-- | vcl/source/gdi/cvtgrf.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/cvtgrf.cxx b/vcl/source/gdi/cvtgrf.cxx index 9e9ecfb6eac2..d14664bd047a 100644 --- a/vcl/source/gdi/cvtgrf.cxx +++ b/vcl/source/gdi/cvtgrf.cxx @@ -33,7 +33,7 @@ GraphicConverter::~GraphicConverter() ErrCode GraphicConverter::Import( SvStream& rIStm, Graphic& rGraphic, ConvertDataFormat nFormat ) { - GraphicConverter* pCvt = ImplGetSVData()->maGDIData.mpGrfConverter; + GraphicConverter* pCvt = ImplGetSVData()->maGDIData.mxGrfConverter.get(); ErrCode nRet = ERRCODE_IO_GENERAL; if( pCvt && pCvt->GetFilterHdl().IsSet() ) @@ -54,7 +54,7 @@ ErrCode GraphicConverter::Import( SvStream& rIStm, Graphic& rGraphic, ConvertDat ErrCode GraphicConverter::Export( SvStream& rOStm, const Graphic& rGraphic, ConvertDataFormat nFormat ) { - GraphicConverter* pCvt = ImplGetSVData()->maGDIData.mpGrfConverter; + GraphicConverter* pCvt = ImplGetSVData()->maGDIData.mxGrfConverter.get(); ErrCode nRet = ERRCODE_IO_GENERAL; if( pCvt && pCvt->GetFilterHdl().IsSet() ) |