summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-07 09:08:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-09 11:06:19 +0200
commit1501da01092d4ad4e5f3c8499fd8d1e18f87bc0c (patch)
tree38ddfacf96c179b45a9bcf8789d2f63afb29aea4 /extensions
parent7af90cc93b76996f0f338c6a1285997531281e75 (diff)
loplugin:oncevar
Change-Id: Id295dc0db174a448ef73db9de34f2de07d47f09a Reviewed-on: https://gerrit.libreoffice.org/57108 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/browserlistbox.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/browserlistbox.cxx b/extensions/source/propctrlr/browserlistbox.cxx
index f737a075d130..bb333a15454f 100644
--- a/extensions/source/propctrlr/browserlistbox.cxx
+++ b/extensions/source/propctrlr/browserlistbox.cxx
@@ -638,7 +638,6 @@ namespace pcr
sal_uInt16 OBrowserListBox::GetPropertyPos( const OUString& _rEntryName ) const
{
- sal_uInt16 nRet = EDITOR_LIST_ENTRY_NOTFOUND;
sal_uInt16 nPos = 0;
for (auto const& line : m_aLines)
{
@@ -649,7 +648,7 @@ namespace pcr
++nPos;
}
- return nRet;
+ return EDITOR_LIST_ENTRY_NOTFOUND;
}