summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-11 16:02:17 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-01-12 07:39:42 +0000
commit1f9a610de1e1e540386972c010ebfc99e5f55df7 (patch)
treeaabfe490a5de78c0936e7237695c2ef6680f75df /include
parentc93486bbb85ae19b6d15395afbd7aec3c5db7e89 (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>
Diffstat (limited to 'include')
-rw-r--r--include/editeng/AccessibleEditableTextPara.hxx2
-rw-r--r--include/editeng/editeng.hxx10
-rw-r--r--include/editeng/editobj.hxx2
-rw-r--r--include/editeng/editview.hxx2
-rw-r--r--include/editeng/numitem.hxx6
-rw-r--r--include/editeng/outliner.hxx6
-rw-r--r--include/editeng/outlobj.hxx1
-rw-r--r--include/editeng/splwrap.hxx2
-rw-r--r--include/editeng/svxacorr.hxx10
-rw-r--r--include/editeng/tstpitem.hxx2
10 files changed, 20 insertions, 23 deletions
diff --git a/include/editeng/AccessibleEditableTextPara.hxx b/include/editeng/AccessibleEditableTextPara.hxx
index 0d1b8e493129..8ac3bd69ac36 100644
--- a/include/editeng/AccessibleEditableTextPara.hxx
+++ b/include/editeng/AccessibleEditableTextPara.hxx
@@ -344,7 +344,7 @@ namespace accessibility
void _correctValues( const sal_Int32 nIndex, css::uno::Sequence< css::beans::PropertyValue >& rValues );
sal_Int32 SkipField(sal_Int32 nIndex, bool bForward);
// get overlapped field, extend return string. Only extend forward for now
- bool ExtendByField( css::accessibility::TextSegment& Segment );
+ void ExtendByField( css::accessibility::TextSegment& Segment );
OUString GetFieldTypeNameAtIndex(sal_Int32 nIndex);
// the paragraph index in the edit engine (guarded by solar mutex)
sal_Int32 mnParagraphIndex;
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx
index 11e120317576..b35dffe347bc 100644
--- a/include/editeng/editeng.hxx
+++ b/include/editeng/editeng.hxx
@@ -230,7 +230,7 @@ public:
void InsertView(EditView* pEditView, size_t nIndex = EE_APPEND);
EditView* RemoveView( EditView* pEditView );
- EditView* RemoveView(size_t nIndex = EE_APPEND);
+ void RemoveView(size_t nIndex = EE_APPEND);
EditView* GetView(size_t nIndex = 0) const;
size_t GetViewCount() const;
bool HasView( EditView* pView ) const;
@@ -371,7 +371,7 @@ public:
// sal_uInt32: Error code of the stream.
sal_uLong Read( SvStream& rInput, const OUString& rBaseURL, EETextFormat, SvKeyValueIterator* pHTTPHeaderAttrs = nullptr );
- sal_uLong Write( SvStream& rOutput, EETextFormat );
+ void Write( SvStream& rOutput, EETextFormat );
void SetStatusEventHdl( const Link<EditStatus&,void>& rLink );
Link<EditStatus&,void> GetStatusEventHdl() const;
@@ -590,7 +590,7 @@ public:
EditPaM SplitContent(sal_Int32 nNode, sal_Int32 nSepPos);
EditPaM ConnectContents(sal_Int32 nLeftNode, bool bBackward);
- EditPaM InsertFeature(const EditSelection& rEditSelection, const SfxPoolItem& rItem);
+ void InsertFeature(const EditSelection& rEditSelection, const SfxPoolItem& rItem);
EditSelection MoveParagraphs(const Range& rParagraphs, sal_Int32 nNewPos, EditView* pCurView);
@@ -603,8 +603,8 @@ public:
void SetUndoMode(bool b);
void FormatAndUpdate(EditView* pCurView = nullptr);
- bool Undo(EditView* pView);
- bool Redo(EditView* pView);
+ void Undo(EditView* pView);
+ void Redo(EditView* pView);
sal_Int32 GetOverflowingParaNum() const;
sal_Int32 GetOverflowingLineNum() const;
diff --git a/include/editeng/editobj.hxx b/include/editeng/editobj.hxx
index 495571a319b8..4a3939c2af97 100644
--- a/include/editeng/editobj.hxx
+++ b/include/editeng/editobj.hxx
@@ -98,7 +98,7 @@ public:
EditTextObject* Clone() const;
- bool Store( SvStream& rOStream ) const;
+ void Store( SvStream& rOStream ) const;
static EditTextObject* Create(
SvStream& rIStream, SfxItemPool* pGlobalTextObjectPool = nullptr );
diff --git a/include/editeng/editview.hxx b/include/editeng/editview.hxx
index 369f7db9b851..33adc6e9a475 100644
--- a/include/editeng/editview.hxx
+++ b/include/editeng/editview.hxx
@@ -120,7 +120,7 @@ public:
bool HasSelection() const;
ESelection GetSelection() const;
void SetSelection( const ESelection& rNewSel );
- bool SelectCurrentWord( sal_Int16 nWordType = css::i18n::WordType::ANYWORD_IGNOREWHITESPACES );
+ void SelectCurrentWord( sal_Int16 nWordType = css::i18n::WordType::ANYWORD_IGNOREWHITESPACES );
/// Returns the rectangles of the current selection in TWIPs.
void GetSelectionRectangles(std::vector<Rectangle>& rLogicRects) const;
diff --git a/include/editeng/numitem.hxx b/include/editeng/numitem.hxx
index fe39ef257640..d338a510189a 100644
--- a/include/editeng/numitem.hxx
+++ b/include/editeng/numitem.hxx
@@ -148,7 +148,7 @@ public:
virtual ~SvxNumberFormat();
- SvStream& Store(SvStream &rStream, FontToSubsFontConverter pConverter);
+ void Store(SvStream &rStream, FontToSubsFontConverter pConverter);
SvxNumberFormat& operator=( const SvxNumberFormat& );
bool operator==( const SvxNumberFormat& ) const;
@@ -265,7 +265,7 @@ public:
SvxNumRule& operator=( const SvxNumRule& );
- SvStream& Store(SvStream &rStream);
+ void Store(SvStream &rStream);
const SvxNumberFormat* Get(sal_uInt16 nLevel)const;
const SvxNumberFormat& GetLevel(sal_uInt16 nLevel)const;
void SetLevel(sal_uInt16 nLevel, const SvxNumberFormat& rFmt, bool bIsValid = true);
@@ -286,7 +286,7 @@ public:
SvxNumRuleType GetNumRuleType() const { return eNumberingType; }
- bool UnLinkGraphics();
+ void UnLinkGraphics();
};
class EDITENG_DLLPUBLIC SvxNumBulletItem : public SfxPoolItem
diff --git a/include/editeng/outliner.hxx b/include/editeng/outliner.hxx
index f212b8cd1931..b2c018e926ee 100644
--- a/include/editeng/outliner.hxx
+++ b/include/editeng/outliner.hxx
@@ -259,7 +259,7 @@ public:
void Indent( short nDiff );
void AdjustDepth( short nDX ); // Later replace with Indent!
- bool AdjustHeight( long nDY );
+ void AdjustHeight( long nDY );
sal_uLong Read( SvStream& rInput, const OUString& rBaseURL, EETextFormat eFormat, bool bSelect = false, SvKeyValueIterator* pHTTPHeaderAttrs = nullptr );
@@ -297,7 +297,7 @@ public:
Pointer GetPointer( const Point& rPosPixel );
void Command( const CommandEvent& rCEvt );
- EESpellState StartSpeller( bool bMultipleDoc = false );
+ void StartSpeller( bool bMultipleDoc = false );
EESpellState StartThesaurus();
sal_Int32 StartSearchAndReplace( const SvxSearchItem& rSearchItem );
@@ -690,7 +690,7 @@ public:
void SetAddExtLeading( bool b );
size_t InsertView( OutlinerView* pView, size_t nIndex = size_t(-1) );
- OutlinerView* RemoveView( OutlinerView* pView );
+ void RemoveView( OutlinerView* pView );
OutlinerView* RemoveView( size_t nIndex );
OutlinerView* GetView( size_t nIndex ) const;
size_t GetViewCount() const;
diff --git a/include/editeng/outlobj.hxx b/include/editeng/outlobj.hxx
index eac443bdd92a..f4d9c6a51a65 100644
--- a/include/editeng/outlobj.hxx
+++ b/include/editeng/outlobj.hxx
@@ -69,7 +69,6 @@ public:
// compare operator
bool operator==(const OutlinerParaObject& rCandidate) const;
- bool operator!=(const OutlinerParaObject& rCandidate) const { return !operator==(rCandidate); }
// #i102062#
bool isWrongListEqual(const OutlinerParaObject& rCompare) const;
diff --git a/include/editeng/splwrap.hxx b/include/editeng/splwrap.hxx
index 8ca6a22676cc..e2c0af79afa1 100644
--- a/include/editeng/splwrap.hxx
+++ b/include/editeng/splwrap.hxx
@@ -106,7 +106,7 @@ protected:
virtual bool SpellMore(); // examine further documents?
virtual bool HasOtherCnt(); // Are there any special areas?
virtual void SpellStart( SvxSpellArea eSpell ); // Preparing the area
- virtual bool SpellContinue(); // Check Areas
+ virtual void SpellContinue(); // Check Areas
// Result available through GetLast
virtual void ReplaceAll( const OUString &rNewText, sal_Int16 nLanguage ); //Replace word from the replace list
static css::uno::Reference< css::linguistic2::XDictionary >
diff --git a/include/editeng/svxacorr.hxx b/include/editeng/svxacorr.hxx
index a839e2208f0c..b5c54a0a0f8b 100644
--- a/include/editeng/svxacorr.hxx
+++ b/include/editeng/svxacorr.hxx
@@ -87,7 +87,7 @@ public:
virtual bool Replace( sal_Int32 nPos, const OUString& rTxt ) = 0;
virtual bool ReplaceRange( sal_Int32 nPos, sal_Int32 nLen, const OUString& rTxt ) = 0;
- 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& ) = 0;
virtual bool SetINetAttr( sal_Int32 nStt, sal_Int32 nEnd, const OUString& rURL ) = 0;
@@ -279,7 +279,7 @@ public:
// FIXME: this has the horrible flaw that the rTxt must be a reference
// to the actual SwTxtNode/EditNode string because it inserts the character
// in rDoc and expects that to side-effect rTxt
- sal_uLong DoAutoCorrect( SvxAutoCorrDoc& rDoc, const OUString& rTxt,
+ void DoAutoCorrect( SvxAutoCorrDoc& rDoc, const OUString& rTxt,
sal_Int32 nPos, sal_Unicode cInsChar, bool bInsert, vcl::Window* pFrameWin = nullptr );
// Return for the autotext expansion the previous word,
@@ -339,11 +339,11 @@ public:
// - pure Text
bool PutText( const OUString& rShort, const OUString& rLong, LanguageType eLang = LANGUAGE_SYSTEM );
// - Text with attribution (only in the SWG - SWG format!)
- bool PutText( const OUString& rShort, SfxObjectShell& rShell,
+ void PutText( const OUString& rShort, SfxObjectShell& rShell,
LanguageType eLang = LANGUAGE_SYSTEM )
- { return _GetLanguageList( eLang ).PutText(rShort, rShell ); }
+ { _GetLanguageList( eLang ).PutText(rShort, rShell ); }
- bool MakeCombinedChanges( std::vector<SvxAutocorrWord>& aNewEntries,
+ void MakeCombinedChanges( std::vector<SvxAutocorrWord>& aNewEntries,
std::vector<SvxAutocorrWord>& aDeleteEntries,
LanguageType eLang = LANGUAGE_SYSTEM );
diff --git a/include/editeng/tstpitem.hxx b/include/editeng/tstpitem.hxx
index d11b20f59ab6..5a9667b04b51 100644
--- a/include/editeng/tstpitem.hxx
+++ b/include/editeng/tstpitem.hxx
@@ -72,8 +72,6 @@ public:
}
// For the SortedArray:
- bool operator==( const SvxTabStop& rTS ) const
- { return nTabPos == rTS.nTabPos; }
bool operator <( const SvxTabStop& rTS ) const
{ return nTabPos < rTS.nTabPos; }