diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-21 11:34:17 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-21 14:22:31 +0000 |
commit | 679ca2901460d55bbfe31515c60c6f996614f245 (patch) | |
tree | a3219bca1d1226e4e7b123a114cee52ee1186bf7 /sal/textenc | |
parent | 113a18833a0fd6456334ba43ecaa54cb8dc3b81f (diff) |
cppcheck: misc scope and unused variables
Diffstat (limited to 'sal/textenc')
-rw-r--r-- | sal/textenc/tcvtmb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sal/textenc/tcvtmb.c b/sal/textenc/tcvtmb.c index 568fdd0762b7..e0936979eb19 100644 --- a/sal/textenc/tcvtmb.c +++ b/sal/textenc/tcvtmb.c @@ -115,7 +115,6 @@ sal_Size ImplDBCSToUnicode( const ImplTextConverterData* pData, void* pContext, if ( (cLead >= pEUDCTab->mnLeadStart) && (cLead <= pEUDCTab->mnLeadEnd) ) { - sal_uInt16 nTrailCount = 0; if ( (cTrail >= pEUDCTab->mnTrail1Start) && (cTrail <= pEUDCTab->mnTrail1End) ) { @@ -126,7 +125,7 @@ sal_Size ImplDBCSToUnicode( const ImplTextConverterData* pData, void* pContext, } else { - nTrailCount = pEUDCTab->mnTrail1End-pEUDCTab->mnTrail1Start+1; + sal_uInt16 nTrailCount = pEUDCTab->mnTrail1End-pEUDCTab->mnTrail1Start+1; if ( (pEUDCTab->mnTrailCount >= 2) && (cTrail >= pEUDCTab->mnTrail2Start) && (cTrail <= pEUDCTab->mnTrail2End) ) |