summaryrefslogtreecommitdiff
path: root/svx/source/items
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2010-12-29 09:52:22 +0100
committerDavid Tardon <dtardon@redhat.com>2010-12-29 10:52:56 +0100
commitf7f47366ea78a71853fcaca2fa402bef667d9cce (patch)
treed771a6f5992a35c8ddd84a35e2ba31fcb6190cc1 /svx/source/items
parentd31993e9c08c12c8d6bc27557feb17405ec580b4 (diff)
Some cppcheck cleaning
Diffstat (limited to 'svx/source/items')
-rw-r--r--svx/source/items/numfmtsh.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/svx/source/items/numfmtsh.cxx b/svx/source/items/numfmtsh.cxx
index 2d24e8f88525..87cee0782c11 100644
--- a/svx/source/items/numfmtsh.cxx
+++ b/svx/source/items/numfmtsh.cxx
@@ -373,14 +373,14 @@ void SvxNumberFormatShell::MakeFormat( String& rFormat,
if(aCurrencyFormatList.Count()>nCurrencyPos)
{
xub_StrLen rErrPos=0;
- sal_uInt16 rCatLbSelPos=0;
- short rFmtSelPos=0;
SvStrings aFmtEList;
sal_uInt32 nFound = pFormatter->TestNewString( *aCurrencyFormatList[nCurrencyPos], eCurLanguage );
if ( nFound == NUMBERFORMAT_ENTRY_NOT_FOUND )
{
+ sal_uInt16 rCatLbSelPos=0;
+ short rFmtSelPos=0;
AddFormat( *aCurrencyFormatList[nCurrencyPos],rErrPos,rCatLbSelPos,
rFmtSelPos,aFmtEList);
}
@@ -1729,10 +1729,9 @@ sal_uInt16 SvxNumberFormatShell::FindCurrencyFormat( const String& rFmtString )
sal_uInt16 nPos=FindCurrencyTableEntry(rFmtString, bTestBanking);
- sal_uInt16 nStart=0;
-
if(nPos!=(sal_uInt16)-1)
{
+ sal_uInt16 nStart=0;
if(bTestBanking && aCurCurrencyList.Count()>nPos)
{
nStart=nCount;