diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-23 16:06:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-23 19:35:35 +0200 |
commit | 79e1d1353b4bed9a120c44b3a0436d4b041c30f7 (patch) | |
tree | 283a04d6c81cfc10356c6b338a6f0922183a40d1 /include | |
parent | b23b1295af584162f95c1559a3d8f8bbe4824413 (diff) |
tdf#119388 use virtual to bypass dynamic_cast
in SdrObjList::ReformatAllEdgeObjects, shaves 10% of the time off
Change-Id: Iceee362d0e3326d046f1ef5039457941160cee4f
Reviewed-on: https://gerrit.libreoffice.org/78019
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/svdobj.hxx | 2 | ||||
-rw-r--r-- | include/svx/svdoedge.hxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx index 0b1e5c3a832b..2d3dd91f90c0 100644 --- a/include/svx/svdobj.hxx +++ b/include/svx/svdobj.hxx @@ -911,6 +911,8 @@ public: void setSuitableOutlinerBg(Outliner& rOutliner) const; + virtual bool IsSdrEdgeObj() const { return false; } + protected: tools::Rectangle aOutRect; // surrounding rectangle for Paint (incl. LineWidth, ...) Point aAnchor; // anchor position (Writer) diff --git a/include/svx/svdoedge.hxx b/include/svx/svdoedge.hxx index 16127d914ec8..f2b707f7fbe2 100644 --- a/include/svx/svdoedge.hxx +++ b/include/svx/svdoedge.hxx @@ -168,6 +168,8 @@ public: void SetSuppressDefaultConnect(bool bNew) { mbSuppressDefaultConnect = bNew; } bool GetSuppressDefaultConnect() const { return mbSuppressDefaultConnect; } + virtual bool IsSdrEdgeObj() const override { return true; } + protected: virtual void Notify(SfxBroadcaster& rBC, const SfxHint& rHint) override; |