diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-09-20 16:19:50 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-09-20 16:28:11 +0300 |
commit | cc3e899fabe73629b1670bc38386deb649ae81e5 (patch) | |
tree | a2698016fb0ab84b16b6038c02cfc81eb6921388 | |
parent | 711752a98a373778aca8044406d6f08ebd2aeb9a (diff) |
WaE: this method can be declared static
Change-Id: I1b656cc53f00b866ed6e86d291149e7f1790f26f
-rw-r--r-- | editeng/source/outliner/overflowingtxt.cxx | 6 | ||||
-rw-r--r-- | 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; |