summaryrefslogtreecommitdiff
path: root/vcl/inc/impgraph.hxx
diff options
context:
space:
mode:
authorMark Page <aptitude@btconnect.com>2016-07-05 14:33:20 +0100
committerNoel Grandin <noelgrandin@gmail.com>2016-07-11 06:32:00 +0000
commitb8c8b0d0c2bb2a1ce61e4d94d0a3e0636db658fa (patch)
tree922591d03f342f5585e935cd54edae14f533d252 /vcl/inc/impgraph.hxx
parenta4d40892b78070c9e54e0c8a30ed20d3395e68cd (diff)
Modify ImpGraphic class, GraphicReader context to use unique ptr
Change-Id: I51c3995f4a6e940a5235524eb94dd356b27ae8d7 Reviewed-on: https://gerrit.libreoffice.org/26955 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/inc/impgraph.hxx')
-rw-r--r--vcl/inc/impgraph.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/inc/impgraph.hxx b/vcl/inc/impgraph.hxx
index bb67c66522fd..817b9cf9b4f4 100644
--- a/vcl/inc/impgraph.hxx
+++ b/vcl/inc/impgraph.hxx
@@ -41,7 +41,7 @@ private:
BitmapEx maEx;
ImpSwapInfo maSwapInfo;
std::unique_ptr<Animation> mpAnimation;
- GraphicReader* mpContext;
+ std::shared_ptr<GraphicReader> mpContext;
std::shared_ptr<ImpSwapFile> mpSwapFile;
std::unique_ptr<GfxLink> mpGfxLink;
GraphicType meType;
@@ -114,8 +114,8 @@ private:
private:
- GraphicReader* ImplGetContext() { return mpContext;}
- void ImplSetContext( GraphicReader* pReader );
+ std::shared_ptr<GraphicReader>& ImplGetContext() { return mpContext;}
+ void ImplSetContext( const std::shared_ptr<GraphicReader>& pReader );
void ImplSetDummyContext( bool value ) { mbDummyContext = value; }
bool ImplReadEmbedded( SvStream& rIStream );
bool ImplWriteEmbedded( SvStream& rOStream );