diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2015-08-21 13:52:14 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-08-21 22:25:03 +0000 |
commit | 373e71ee65a90daa9a27ff5bb7a3d6c867e4f393 (patch) | |
tree | ceba77dcc99d5fce0f9ba2a2e56c8c69af8d3987 /cui | |
parent | d0489d0827fc6cef04d0f3602023d82ceda82480 (diff) |
tdf#39440 reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: I97726ed32e5aa92e7da7d248380a78b1b201e46e
Reviewed-on: https://gerrit.libreoffice.org/17912
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/optaboutconfig.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx index 37496e3d76e5..7b18d07adc2a 100644 --- a/cui/source/options/optaboutconfig.cxx +++ b/cui/source/options/optaboutconfig.cxx @@ -873,13 +873,12 @@ void CuiAboutConfigTabPage::InsertEntry( SvTreeListEntry *pEntry) sal_Int32 index = sPathWithProperty.lastIndexOf(static_cast< SvLBoxString& >(pEntry->GetItem(1)).GetText()); OUString sPath = sPathWithProperty.copy(0, index); index = 0; - int prevIndex; SvTreeListEntry* pParentEntry; SvTreeListEntry* pGrandParentEntry = nullptr; do { - prevIndex = index; + int prevIndex = index; index = sPath.indexOf("/", index+1); OUString sParentName = sPath.copy(prevIndex+1, index - prevIndex - 1); |