diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-09-23 11:27:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-23 12:09:02 +0000 |
commit | 7adb5c683ce2ee35bc7e56ae6c9cb59bdd45187d (patch) | |
tree | ff8a03fa3ad99189b0b1ca7dc3831f62c82995a4 /include/vcl | |
parent | 04f50946dee164220af1c99cc03b2d7c0a98ea3f (diff) |
use std to impl this resource sharing
Change-Id: I41ea7bf672040089ccca5cf2bc449a0d0e78b903
Reviewed-on: https://gerrit.libreoffice.org/29219
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/graph.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/graph.hxx b/include/vcl/graph.hxx index 1e8c076e0bab..66f07a476520 100644 --- a/include/vcl/graph.hxx +++ b/include/vcl/graph.hxx @@ -106,12 +106,12 @@ class VCL_DLLPUBLIC Graphic : public SvDataCopyStream { private: - ImpGraphic* mpImpGraphic; + std::shared_ptr<ImpGraphic> mxImpGraphic; public: SAL_DLLPRIVATE void ImplTestRefCount(); - SAL_DLLPRIVATE ImpGraphic* ImplGetImpGraphic() const { return mpImpGraphic; } + SAL_DLLPRIVATE ImpGraphic* ImplGetImpGraphic() const { return mxImpGraphic.get(); } public: Graphic(); |