summaryrefslogtreecommitdiff
path: root/sw/inc
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 /sw/inc
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 'sw/inc')
-rw-r--r--sw/inc/textboxhelper.hxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx
index 189b7c006c96..0c3bf5ff742b 100644
--- a/sw/inc/textboxhelper.hxx
+++ b/sw/inc/textboxhelper.hxx
@@ -89,8 +89,6 @@ public:
* Valid types are RES_DRAWFRMFMT and RES_FLYFRMFMT.
*/
static bool isTextBox(const SwFrameFormat* pFormat, sal_uInt16 nType);
- /// Is pObject a textbox of a drawinglayer shape?
- static bool isTextBox(const SdrObject* pObject);
/// Count number of shapes in the document, excluding TextBoxes.
static sal_Int32 getCount(const SwDoc* pDoc);