From cc3e899fabe73629b1670bc38386deb649ae81e5 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sun, 20 Sep 2015 16:19:50 +0300 Subject: WaE: this method can be declared static Change-Id: I1b656cc53f00b866ed6e86d291149e7f1790f26f --- editeng/source/outliner/overflowingtxt.cxx | 6 +++--- include/editeng/overflowingtxt.hxx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/editeng/source/outliner/overflowingtxt.cxx b/editeng/source/outliner/overflowingtxt.cxx index 6f2967c3c87e..995216faf202 100644 --- a/editeng/source/outliner/overflowingtxt.cxx +++ b/editeng/source/outliner/overflowingtxt.cxx @@ -127,7 +127,7 @@ OverflowingText::OverflowingText(TranferableText xOverflowingContent) : } -ESelection OverflowingText::GetInsertionPointSel() const +ESelection OverflowingText::GetInsertionPointSel() { assert(false && "You should never get here"); return getLastPositionSel(NULL); @@ -193,9 +193,9 @@ OFlowChainedText::OFlowChainedText(Outliner *pOutl, bool bIsDeepMerge) mbIsDeepMerge = bIsDeepMerge; } -ESelection OFlowChainedText::GetInsertionPointSel() const +ESelection OFlowChainedText::GetInsertionPointSel() { - return mpOverflowingTxt->GetInsertionPointSel(); + return OverflowingText::GetInsertionPointSel(); } ESelection OFlowChainedText::GetOverflowPointSel() const diff --git a/include/editeng/overflowingtxt.hxx b/include/editeng/overflowingtxt.hxx index 1b521e9c07a6..9eec07ec1edd 100644 --- a/include/editeng/overflowingtxt.hxx +++ b/include/editeng/overflowingtxt.hxx @@ -75,7 +75,7 @@ class OverflowingText public: OutlinerParaObject *JuxtaposeParaObject(Outliner *, OutlinerParaObject *); OutlinerParaObject *DeeplyMergeParaObject(Outliner *, OutlinerParaObject *); - ESelection GetInsertionPointSel() const; + static ESelection GetInsertionPointSel(); private: friend class Outliner; @@ -116,7 +116,7 @@ public: OutlinerParaObject *InsertOverflowingText(Outliner *, OutlinerParaObject *); OutlinerParaObject *RemoveOverflowingText(Outliner *); - ESelection GetInsertionPointSel() const; + static ESelection GetInsertionPointSel(); ESelection GetOverflowPointSel() const; bool IsLastParaInterrupted() const; -- cgit