diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-12-26 15:38:24 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2024-12-26 17:37:33 +0100 |
commit | 1c2df42580f381ccfdd1863bc1da4c81314533aa (patch) | |
tree | 7e11b207de1fcf9077ccb8cea1ba0d1fdf79b31e /include/svx/annotation/ObjectAnnotationData.hxx | |
parent | aa93f7366236c5c291a8984900eb863b98d4da07 (diff) |
no need to allocate AnnotationData for every SdrObject
SdrObject is performance sensitive, because we allocate a boatload
of them when drawing charts. Avoiding an extra allocation that
only a tiny handful of SdrObjects need is worthwhile.
Change-Id: I4974bc1eacfe8abcce45ea659d9edaa8694135d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179433
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/annotation/ObjectAnnotationData.hxx')
-rw-r--r-- | include/svx/annotation/ObjectAnnotationData.hxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/svx/annotation/ObjectAnnotationData.hxx b/include/svx/annotation/ObjectAnnotationData.hxx index 4530df2fb61c..f7dc220d789d 100644 --- a/include/svx/annotation/ObjectAnnotationData.hxx +++ b/include/svx/annotation/ObjectAnnotationData.hxx @@ -19,9 +19,6 @@ namespace sdr::annotation class ObjectAnnotationData { public: - /// Does the (sdr) object represent an annotation - bool mbIsAnnotation : 1 = false; - /// The annotation rtl::Reference<sdr::annotation::Annotation> mxAnnotation; @@ -31,7 +28,7 @@ public: /// Open popup for the annotation void openPopup() { - if (mbIsAnnotation && mpAnnotationPopup) + if (mpAnnotationPopup) mpAnnotationPopup->openPopup(); } }; |