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 | Remove old RCS lines. (diff) | |
download | core-679ca2901460d55bbfe31515c60c6f996614f245.tar.gz core-679ca2901460d55bbfe31515c60c6f996614f245.zip |
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) ) |