diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2014-12-20 16:48:11 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-12-21 11:36:51 +0100 |
commit | ea5effc3df7b89a9332ea5b1b1e6cd40bf37f081 (patch) | |
tree | 8e73730a6190a094b54e81154b8bc108ab601b26 /sc/source/ui/pagedlg | |
parent | 7af4592c1dadbd960453289a94a6156d5c5d76bc (diff) |
fdo#39440 sc: reduce scope of local variables
This addresses some cppcheck warnings.
Change-Id: I2eaf9a6792ca2c06a005385ec45c08f1292cba23
Diffstat (limited to 'sc/source/ui/pagedlg')
-rw-r--r-- | sc/source/ui/pagedlg/areasdlg.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/pagedlg/areasdlg.cxx b/sc/source/ui/pagedlg/areasdlg.cxx index 3bfa3e67a92d..e28f0226c79a 100644 --- a/sc/source/ui/pagedlg/areasdlg.cxx +++ b/sc/source/ui/pagedlg/areasdlg.cxx @@ -586,12 +586,11 @@ IMPL_LINK( ScPrintAreasDlg, Impl_ModifyHdl, formula::RefEdit*, pEd ) if ( (nEntryCount > nFirstCustomPos) && !aStrEd.isEmpty() ) { bool bFound = false; - OUString* pSymbol = NULL; sal_uInt16 i; for ( i=nFirstCustomPos; i<nEntryCount && !bFound; i++ ) { - pSymbol = (OUString*)pLb->GetEntryData( i ); + OUString* pSymbol = (OUString*)pLb->GetEntryData( i ); bFound = ( (*pSymbol) ==aStrEd || (*pSymbol) == aEdUpper ); } |