summaryrefslogtreecommitdiff
path: root/sw/inc/unocrsr.hxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-05-20 17:01:12 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-05-26 00:51:08 +0200
commitf7a3cc7af22a802322c92a84363676d114bb788e (patch)
treef9ebabb21ed3f2fb0cd4361755462958cba6083e /sw/inc/unocrsr.hxx
parent63536161c82c21d5574fc98e0d374517fbb1205b (diff)
kill faux polymophic SwUnoCrsr::Clone()
- SwUnoCrsr::Clone() is dead code that is never used - SwUnoTblCrsr::Clone() is the only implemenation that is used, in a context that assumes it to be a SwUnoTblCrsr anyway => make this non-virtual Change-Id: I28ddf314eda3d234f2a383bf386dfbe251966038
Diffstat (limited to 'sw/inc/unocrsr.hxx')
-rw-r--r--sw/inc/unocrsr.hxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/inc/unocrsr.hxx b/sw/inc/unocrsr.hxx
index 767c534ae13d..66d8a7080f09 100644
--- a/sw/inc/unocrsr.hxx
+++ b/sw/inc/unocrsr.hxx
@@ -72,9 +72,6 @@ public:
void SetSkipOverHiddenSections( bool bFlag )
{ m_bSkipOverHiddenSections = bFlag; }
- // make copy of cursor
- virtual SwUnoCrsr * Clone() const;
-
DECL_FIXEDMEMPOOL_NEWDEL( SwUnoCrsr )
};
@@ -98,7 +95,7 @@ public:
nsSwCursorSelOverFlags::SELOVER_TOGGLE |
nsSwCursorSelOverFlags::SELOVER_CHANGEPOS )) SAL_OVERRIDE;
- virtual SwUnoTableCrsr * Clone() const SAL_OVERRIDE;
+ SwUnoTableCrsr * Clone() const;
void MakeBoxSels();