diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-11 16:02:17 +0200 |
---|---|---|
committer | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2016-07-20 01:25:54 -0400 |
commit | 0629bbb0f58052640f294c0e95dca1f185ac8169 (patch) | |
tree | d93b28f7d882d69adfe30a05a9bc40e437c7a24f /sw | |
parent | 39214a9c36b64ccd48c2ad5aae3b5849028cc0f6 (diff) |
loplugin:unusedmethods unused return value in include/editeng
Change-Id: I1314480950b0d3a3e5ed066d71c175604dd41970
Reviewed-on: https://gerrit.libreoffice.org/21361
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
(cherry picked from commit 1f9a610de1e1e540386972c010ebfc99e5f55df7)
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/edit/acorrect.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/inc/acorrect.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/hyp.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/lingu/hyp.cxx | 4 |
4 files changed, 4 insertions, 7 deletions
diff --git a/sw/source/core/edit/acorrect.cxx b/sw/source/core/edit/acorrect.cxx index e84ddf3d3174..ef4efb130f65 100644 --- a/sw/source/core/edit/acorrect.cxx +++ b/sw/source/core/edit/acorrect.cxx @@ -229,7 +229,7 @@ bool SwAutoCorrDoc::ReplaceRange( sal_Int32 nPos, sal_Int32 nSourceLength, const return true; } -bool SwAutoCorrDoc::SetAttr( sal_Int32 nStt, sal_Int32 nEnd, sal_uInt16 nSlotId, +void SwAutoCorrDoc::SetAttr( sal_Int32 nStt, sal_Int32 nEnd, sal_uInt16 nSlotId, SfxPoolItem& rItem ) { const SwNodeIndex& rNd = rCursor.GetPoint()->nNode; @@ -249,7 +249,6 @@ bool SwAutoCorrDoc::SetAttr( sal_Int32 nStt, sal_Int32 nEnd, sal_uInt16 nSlotId, if( bUndoIdInitialized ) bUndoIdInitialized = true; } - return 0 != nWhich; } bool SwAutoCorrDoc::SetINetAttr( sal_Int32 nStt, sal_Int32 nEnd, const OUString& rURL ) diff --git a/sw/source/core/inc/acorrect.hxx b/sw/source/core/inc/acorrect.hxx index b04df8c49917..50bc87ca43c0 100644 --- a/sw/source/core/inc/acorrect.hxx +++ b/sw/source/core/inc/acorrect.hxx @@ -62,7 +62,7 @@ public: virtual bool Replace( sal_Int32 nPos, const OUString& rText ) override; virtual bool ReplaceRange( sal_Int32 nPos, sal_Int32 nLen, const OUString& rText ) override; - virtual bool SetAttr( sal_Int32 nStt, sal_Int32 nEnd, sal_uInt16 nSlotId, + virtual void SetAttr( sal_Int32 nStt, sal_Int32 nEnd, sal_uInt16 nSlotId, SfxPoolItem& ) override; virtual bool SetINetAttr( sal_Int32 nStt, sal_Int32 nEnd, const OUString& rURL ) override; diff --git a/sw/source/uibase/inc/hyp.hxx b/sw/source/uibase/inc/hyp.hxx index 258c39693237..8a621ba0bd3b 100644 --- a/sw/source/uibase/inc/hyp.hxx +++ b/sw/source/uibase/inc/hyp.hxx @@ -38,7 +38,7 @@ private: protected: virtual void SpellStart( SvxSpellArea eSpell ) override; - virtual bool SpellContinue() override; + virtual void SpellContinue() override; virtual void SpellEnd( ) override; virtual bool SpellMore() override; virtual void InsertHyphen( const sal_Int32 nPos ) override; // insert hyphen diff --git a/sw/source/uibase/lingu/hyp.cxx b/sw/source/uibase/lingu/hyp.cxx index aee0bcfd5ff9..f5738f86737b 100644 --- a/sw/source/uibase/lingu/hyp.cxx +++ b/sw/source/uibase/lingu/hyp.cxx @@ -69,7 +69,7 @@ void SwHyphWrapper::SpellStart( SvxSpellArea eSpell ) pView->HyphStart( eSpell ); } -bool SwHyphWrapper::SpellContinue() +void SwHyphWrapper::SpellContinue() { // for automatic separation, make actions visible only at the end std::unique_ptr<SwWait> pWait; @@ -90,8 +90,6 @@ bool SwHyphWrapper::SpellContinue() PSH->EndAllAction(); pWait.reset(); } - - return GetLast().is(); } void SwHyphWrapper::SpellEnd() |