summaryrefslogtreecommitdiff
path: root/i18npool/source/search
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-17 10:04:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-17 10:04:42 +0000
commit308d8d92b27cd2a56b1acc5226ea8bb0540a77a5 (patch)
tree18772ed809a8d3820d16c0bb1335ba16d1be3e5b /i18npool/source/search
parent6ea8579d5ec92c3dfdb78db816a1f5155e7ed374 (diff)
cppcheck: unused variable
Diffstat (limited to 'i18npool/source/search')
-rw-r--r--i18npool/source/search/levdis.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/search/levdis.cxx b/i18npool/source/search/levdis.cxx
index 417d4a5fe243..137c5a8b5dd1 100644
--- a/i18npool/source/search/levdis.cxx
+++ b/i18npool/source/search/levdis.cxx
@@ -369,11 +369,11 @@ int WLevDistance::WLD( const sal_Unicode* cString, sal_Int32 nStringLen )
// aus Userwerten nOtherX, nShorterY, nLongerZ, bRelaxed
int WLevDistance::CalcLPQR( int nX, int nY, int nZ, bool bRelaxed )
{
- int nMin, nMid, nMax;
+ int nMid, nMax;
if ( nX < 0 ) nX = 0; // nur positive Werte
if ( nY < 0 ) nY = 0;
if ( nZ < 0 ) nZ = 0;
- if ( 0 == (nMin = Min3( nX, nY, nZ )) ) // mindestens einer 0
+ if (0 == Min3( nX, nY, nZ )) // mindestens einer 0
{
nMax = Max3( nX, nY, nZ ); // entweder 0 bei drei 0 oder Max
if ( 0 == (nMid = Mid3( nX, nY, nZ )) ) // sogar zwei 0