summaryrefslogtreecommitdiff
path: root/include/svx/svdobj.hxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-12-18 17:49:59 +0200
committerTor Lillqvist <tml@collabora.com>2017-12-19 20:43:19 +0100
commitfdbd3ac1880b3943e2cff48ecfb95dd088210d09 (patch)
tree43e14ea2f14e63ea11eae120f54abd232bdd8ae4 /include/svx/svdobj.hxx
parentc7f528bbc8ad70fb869736ea810534e8210284b5 (diff)
Get rid of a dynamic_cast
Add a virtual member function instead. This improves performance a bit. The time to load a specific pathological customer document dropped from 1min 53s to 1min 47s on my machine. Not hugely, but clearly. Change-Id: I1e59d601e9d0e14b6a756c6e0ad29ce2a1fce66d Reviewed-on: https://gerrit.libreoffice.org/46791 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'include/svx/svdobj.hxx')
-rw-r--r--include/svx/svdobj.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/svx/svdobj.hxx b/include/svx/svdobj.hxx
index f1768787c92a..265ec9b96c72 100644
--- a/include/svx/svdobj.hxx
+++ b/include/svx/svdobj.hxx
@@ -801,6 +801,9 @@ public:
virtual void dumpAsXml(struct _xmlTextWriter* pWriter) const;
+ /// Is this a textbox of a drawinglayer shape?
+ virtual bool IsTextBox() const;
+
void SetEmptyPresObj(bool bEpt);
bool IsEmptyPresObj() const { return bEmptyPresObj;}
void SetNotVisibleAsMaster(bool bFlg);