summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-18 10:39:48 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-01-18 12:50:09 +0000
commita7f6efc68ba97db98ebab9ebc473bffb8ded757f (patch)
treebad37ce9ee1c9f61f1c8541a9689ecdea8c84c08 /editeng
parenta08745551370a052bfb6b91335956ababf435791 (diff)
loplugin: unused return values
Change-Id: I9c61a46c57894bc63a57740206c0bcb4a16553af Reviewed-on: https://gerrit.libreoffice.org/21571 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editdoc.cxx4
-rw-r--r--editeng/source/editeng/editdoc.hxx2
-rw-r--r--editeng/source/editeng/editobj.cxx5
-rw-r--r--editeng/source/editeng/editobj2.hxx6
-rw-r--r--editeng/source/editeng/impedit.hxx4
-rw-r--r--editeng/source/editeng/impedit5.cxx8
6 files changed, 6 insertions, 23 deletions
diff --git a/editeng/source/editeng/editdoc.cxx b/editeng/source/editeng/editdoc.cxx
index f1207662c9fb..4fb88ee02867 100644
--- a/editeng/source/editeng/editdoc.cxx
+++ b/editeng/source/editeng/editdoc.cxx
@@ -2393,15 +2393,13 @@ EditPaM EditDoc::ConnectParagraphs( ContentNode* pLeft, ContentNode* pRight )
return aPaM;
}
-EditPaM EditDoc::RemoveChars( EditPaM aPaM, sal_Int32 nChars )
+void EditDoc::RemoveChars( EditPaM aPaM, sal_Int32 nChars )
{
// Maybe remove Features!
aPaM.GetNode()->Erase( aPaM.GetIndex(), nChars );
aPaM.GetNode()->CollapsAttribs( aPaM.GetIndex(), nChars, GetItemPool() );
SetModified( true );
-
- return aPaM;
}
void EditDoc::InsertAttribInSelection( ContentNode* pNode, sal_Int32 nStart, sal_Int32 nEnd, const SfxPoolItem& rPoolItem )
diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx
index cf898df1c27d..0e3ad60b3674 100644
--- a/editeng/source/editeng/editdoc.hxx
+++ b/editeng/source/editeng/editdoc.hxx
@@ -780,7 +780,7 @@ public:
EditPaM Clear();
EditPaM RemoveText();
- EditPaM RemoveChars( EditPaM aPaM, sal_Int32 nChars );
+ void RemoveChars( EditPaM aPaM, sal_Int32 nChars );
EditPaM InsertText( EditPaM aPaM, const OUString& rStr );
EditPaM InsertParaBreak( EditPaM aPaM, bool bKeepEndingAttribs );
EditPaM InsertFeature( EditPaM aPaM, const SfxPoolItem& rItem );
diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx
index de10b02a2ae4..f12c68ea5341 100644
--- a/editeng/source/editeng/editobj.cxx
+++ b/editeng/source/editeng/editobj.cxx
@@ -226,11 +226,6 @@ bool ContentInfo::operator==( const ContentInfo& rCompare ) const
return false;
}
-bool ContentInfo::operator!=(const ContentInfo& rCompare) const
-{
- return !operator==(rCompare);
-}
-
EditTextObject::EditTextObject( SfxItemPool* pPool ) :
mpImpl(new EditTextObjectImpl(this, pPool))
{
diff --git a/editeng/source/editeng/editobj2.hxx b/editeng/source/editeng/editobj2.hxx
index 0e61edd35f4f..aa8b248c4449 100644
--- a/editeng/source/editeng/editobj2.hxx
+++ b/editeng/source/editeng/editobj2.hxx
@@ -71,11 +71,6 @@ public:
void SetItem(const SfxPoolItem& rNew);
inline bool operator==( const XEditAttribute& rCompare ) const;
-
- bool operator!= (const XEditAttribute& r) const
- {
- return !operator==(r);
- }
};
inline bool XEditAttribute::operator==( const XEditAttribute& rCompare ) const
@@ -163,7 +158,6 @@ public:
const WrongList* GetWrongList() const;
void SetWrongList( WrongList* p );
bool operator==( const ContentInfo& rCompare ) const;
- bool operator!=( const ContentInfo& rCompare ) const;
// #i102062#
bool isWrongListEqual(const ContentInfo& rCompare) const;
diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx
index 5f180cd83d09..57e03f7d2a34 100644
--- a/editeng/source/editeng/impedit.hxx
+++ b/editeng/source/editeng/impedit.hxx
@@ -842,8 +842,8 @@ public:
void IndentBlock( EditView* pView, bool bRight );
// For Undo/Redo
- bool Undo( EditView* pView );
- bool Redo( EditView* pView );
+ void Undo( EditView* pView );
+ void Redo( EditView* pView );
// OV-Special
void InvalidateFromParagraph( sal_Int32 nFirstInvPara );
diff --git a/editeng/source/editeng/impedit5.cxx b/editeng/source/editeng/impedit5.cxx
index 027c3ce1d844..bab347ee53e7 100644
--- a/editeng/source/editeng/impedit5.cxx
+++ b/editeng/source/editeng/impedit5.cxx
@@ -281,26 +281,22 @@ void ImpEditEngine::EnableUndo( bool bEnable )
bUndoEnabled = bEnable;
}
-bool ImpEditEngine::Undo( EditView* pView )
+void ImpEditEngine::Undo( EditView* pView )
{
if ( HasUndoManager() && GetUndoManager().GetUndoActionCount() )
{
SetActiveView( pView );
GetUndoManager().Undo();
- return true;
}
- return false;
}
-bool ImpEditEngine::Redo( EditView* pView )
+void ImpEditEngine::Redo( EditView* pView )
{
if ( HasUndoManager() && GetUndoManager().GetRedoActionCount() )
{
SetActiveView( pView );
GetUndoManager().Redo();
- return true;
}
- return false;
}
SfxItemSet ImpEditEngine::GetAttribs( EditSelection aSel, EditEngineAttribs nOnlyHardAttrib )