summaryrefslogtreecommitdiff
path: root/editeng/source/outliner/outliner.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-30 15:34:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-31 14:38:00 +0200
commit8f35503fb9273843a0153084e6ec79fead301972 (patch)
tree60fd73004442d8cd66abeb6bc3da820bbbff5169 /editeng/source/outliner/outliner.cxx
parentcba7acca97ac0245b93e27ba46351285fd7c5ff2 (diff)
loplugin:returnconstant in editeng
Change-Id: I9e38c1634466e580af29547df554d620b5b7860c Reviewed-on: https://gerrit.libreoffice.org/58336 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/outliner/outliner.cxx')
-rw-r--r--editeng/source/outliner/outliner.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx
index 374fa86025f9..2f60f3daca1d 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -1308,9 +1308,8 @@ void Outliner::RemoveView( OutlinerView const * pView )
}
}
-OutlinerView* Outliner::RemoveView( size_t nIndex )
+void Outliner::RemoveView( size_t nIndex )
{
-
EditView* pEditView = pEditEngine->GetView( nIndex );
pEditView->HideCursor(); // HACK
@@ -1321,8 +1320,6 @@ OutlinerView* Outliner::RemoveView( size_t nIndex )
advance( it, nIndex );
aViewList.erase( it );
}
-
- return nullptr; // return superfluous
}