summaryrefslogtreecommitdiff
path: root/include/vcl/graph.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 /include/vcl/graph.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 'include/vcl/graph.hxx')
-rw-r--r--include/vcl/graph.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/graph.hxx b/include/vcl/graph.hxx
index 697565dbd1e6..b6d719b1e3de 100644
--- a/include/vcl/graph.hxx
+++ b/include/vcl/graph.hxx
@@ -192,10 +192,10 @@ public:
public:
- GraphicReader* GetContext();
- void SetContext( GraphicReader* pReader );
- void SetDummyContext(bool value);
- bool IsDummyContext();
+ std::shared_ptr<GraphicReader>& GetContext();
+ void SetContext( const std::shared_ptr<GraphicReader> &pReader );
+ void SetDummyContext(bool value);
+ bool IsDummyContext();
private:
friend class GraphicObject;