diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-12 17:01:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-14 11:22:49 +0200 |
commit | 3a2176ae256643a3b8c42bca33d333aecad61d19 (patch) | |
tree | 1a67f920f34141ffe485cedf5bcec74b9f878bbf /svx/inc/sdr | |
parent | 58cb4fc7d17ae5b339c5ed6ae139e6ef2433c927 (diff) |
new loplugin refcountingbase
Look for classes that have more than one ref-counting base class.
A situation which is going to cause trouble.
Which reveals that sdr::table::Cell has two different ref-counting bases,
so rather make SdrText extends OWeakObject, which means
that Cell can just have one ref-counting base,
Change-Id: I8d968270f7b449cff2f29da0bd48fa17181c68c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139807
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/inc/sdr')
-rw-r--r-- | svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx index bc44ca0096ee..dfe66d3b601a 100644 --- a/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx +++ b/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx @@ -30,6 +30,7 @@ #include <tools/weakbase.h> #include <svx/sdtaitm.hxx> #include <rtl/ref.hxx> +#include <unotools/weakref.hxx> // predefines @@ -43,7 +44,7 @@ namespace drawinglayer::primitive2d private: // The text model data; this should later just be the OutlinerParaObject or // something equal - ::tools::WeakReference< SdrText > mrSdrText; + ::unotools::WeakReference< SdrText > mxSdrText; // #i97628# // The text content; now as local OutlinerParaObject copy (internally RefCounted and |