diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-16 13:40:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-17 08:58:24 +0200 |
commit | c85a261695fa5723e97f97915b7aca692d17caa5 (patch) | |
tree | 2a29c2deeb928acb014367f95777b03f9f638b6f /sw/inc | |
parent | e80558911ed6fad2473c92aafe774e7e31ab7401 (diff) |
use rtl::Reference in SwOLEObj
instead of manual ref-counting
Change-Id: I26e55ec7803e60f090f093b5584faec74ebbb8bb
Reviewed-on: https://gerrit.libreoffice.org/43419
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/ndole.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/ndole.hxx b/sw/inc/ndole.hxx index 6330793a45f1..94ec0131158f 100644 --- a/sw/inc/ndole.hxx +++ b/sw/inc/ndole.hxx @@ -22,6 +22,7 @@ #include <ndnotxt.hxx> #include <svtools/embedhlp.hxx> #include <drawinglayer/primitive2d/baseprimitive2d.hxx> +#include <rtl/ref.hxx> class SwGrfFormatColl; class SwDoc; @@ -35,7 +36,7 @@ class SW_DLLPUBLIC SwOLEObj friend class SwOLENode; const SwOLENode* m_pOLENode; - SwOLEListener_Impl* m_pListener; + rtl::Reference<SwOLEListener_Impl> m_xListener; /** Either ref or name are known. If only name is known, ref is obtained on demand by GetOleRef() from Sfx. */ |