[Libreoffice-commits] .: svl/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sun Dec 5 05:32:45 PST 2010
svl/source/numbers/zforfind.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 472070b7ac12ab8db81af5d4904ddfac75786526
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Dec 5 13:32:36 2010 +0000
cppcheck: can reduce the scope of this variable
diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx
index 017ef7d..ccc752f 100644
--- a/svl/source/numbers/zforfind.cxx
+++ b/svl/source/numbers/zforfind.cxx
@@ -1457,7 +1457,6 @@ BOOL ImpSvNumberInputScan::ScanStartString( const String& rString,
const SvNumberformat* pFormat )
{
xub_StrLen nPos = 0;
- int nDayOfWeek;
// First of all, eat leading blanks
SkipBlanks(rString, nPos);
@@ -1507,7 +1506,7 @@ BOOL ImpSvNumberInputScan::ScanStartString( const String& rString,
}
else
{
- nDayOfWeek = GetDayOfWeek( rString, nPos );
+ int nDayOfWeek = GetDayOfWeek( rString, nPos );
if ( nDayOfWeek )
{ // day of week is just parsed away
eScannedType = NUMBERFORMAT_DATE; // !!! it IS a date !!!
More information about the Libreoffice-commits
mailing list