diff options
author | Mark Page <aptitude@btconnect.com> | 2016-07-05 14:33:20 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-11 06:32:00 +0000 |
commit | b8c8b0d0c2bb2a1ce61e4d94d0a3e0636db658fa (patch) | |
tree | 922591d03f342f5585e935cd54edae14f533d252 /include | |
parent | a4d40892b78070c9e54e0c8a30ed20d3395e68cd (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')
-rw-r--r-- | include/vcl/graph.hxx | 8 |
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; |