summaryrefslogtreecommitdiff
path: root/editeng/source/outliner
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 /editeng/source/outliner
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 'editeng/source/outliner')
-rw-r--r--editeng/source/outliner/outliner.cxx3
-rw-r--r--editeng/source/outliner/outlvw.cxx7
2 files changed, 4 insertions, 6 deletions
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx
index 0643fd742a6d..fac21c1a78e2 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -1334,7 +1334,7 @@ size_t Outliner::InsertView( OutlinerView* pView, size_t nIndex )
return ActualIndex;
}
-OutlinerView* Outliner::RemoveView( OutlinerView* pView )
+void Outliner::RemoveView( OutlinerView* pView )
{
for ( ViewList::iterator it = aViewList.begin(); it != aViewList.end(); ++it )
@@ -1347,7 +1347,6 @@ OutlinerView* Outliner::RemoveView( OutlinerView* pView )
break;
}
}
- return nullptr; // return superfluous
}
OutlinerView* Outliner::RemoveView( size_t nIndex )
diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx
index 782d0e2d9c14..9de935e268e1 100644
--- a/editeng/source/outliner/outlvw.cxx
+++ b/editeng/source/outliner/outlvw.cxx
@@ -576,10 +576,9 @@ void OutlinerView::Indent( short nDiff )
pOwner->UndoActionEnd( OLUNDO_DEPTH );
}
-bool OutlinerView::AdjustHeight( long nDY )
+void OutlinerView::AdjustHeight( long nDY )
{
pEditView->MoveParagraphs( nDY );
- return true; // remove return value...
}
Rectangle OutlinerView::GetVisArea() const
@@ -1275,9 +1274,9 @@ OUString OutlinerView::GetSelected() const
return pEditView->GetSelected();
}
-EESpellState OutlinerView::StartSpeller( bool bMultiDoc )
+void OutlinerView::StartSpeller( bool bMultiDoc )
{
- return pEditView->StartSpeller( bMultiDoc );
+ pEditView->StartSpeller( bMultiDoc );
}
EESpellState OutlinerView::StartThesaurus()