diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2015-01-14 18:03:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-14 20:42:32 +0000 |
commit | c752d8bdf099b4ba2ef2e145e0d9da42ba7e74d7 (patch) | |
tree | 8386738dfe2bb6b05e8ee0e3cbc6709499bfd937 /svx/source/unodialogs/textconversiondlgs | |
parent | c0948f29ebd61a232406c30c306d7d8b23a596a6 (diff) |
fdo#39440 svx: reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: I8c63a767c62b3a666ad445a0a3095d1bb1224f5e
Reviewed-on: https://gerrit.libreoffice.org/13908
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/unodialogs/textconversiondlgs')
-rw-r--r-- | svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx index 7b16e6b44f13..b03bd7656be2 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx @@ -197,10 +197,9 @@ DictionaryEntry* DictionaryList::getEntryOnPos( sal_Int32 nPos ) const DictionaryEntry* DictionaryList::getTermEntry( const OUString& rTerm ) const { - DictionaryEntry* pE = 0; for( sal_Int32 nN=GetRowCount(); nN--; ) { - pE = getEntryOnPos( nN ); + DictionaryEntry* pE = getEntryOnPos( nN ); if( pE && rTerm.equals( pE->m_aTerm ) ) return pE; } |