diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-29 08:15:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-29 09:35:30 +0200 |
commit | 497e40ad03c27837978551ba15491c3fb2a0bf53 (patch) | |
tree | baa53156ae5234b65f645e11e590c64e569c6284 /sw | |
parent | 71112060e0930fc58087c3762e836b1e12b60f75 (diff) |
improve refcounting loplugin
to find ref-counted classes being managed via other smart pointer
classes.
Hopefully prevent needing fixes like
642ae256ea5b8083ba0b3c097ca8ea52304b9cdb
"ChangedUIEventListener is refcounted, mustn't be helt by unique_ptr"
Change-Id: I6b0c5f8f87ce3546a8a1104ce1000470c09459bd
Reviewed-on: https://gerrit.libreoffice.org/39378
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/inc/dbtree.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/inc/dbtree.hxx b/sw/source/uibase/inc/dbtree.hxx index 1d55c686e3e2..93bb98efbfb6 100644 --- a/sw/source/uibase/inc/dbtree.hxx +++ b/sw/source/uibase/inc/dbtree.hxx @@ -34,7 +34,7 @@ class SW_DLLPUBLIC SwDBTreeList : public SvTreeListBox bool bInitialized; bool bShowColumns; - std::unique_ptr<SwDBTreeList_Impl> pImpl; + rtl::Reference<SwDBTreeList_Impl> pImpl; DECL_DLLPRIVATE_LINK( DBCompare, const SvSortData&, sal_Int32 ); |