diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-11 13:31:15 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-01-11 13:49:59 +0200 |
commit | 0980a6207dd57f6b64191dcc48cc9c2e987cf940 (patch) | |
tree | f45d82502fc6d064c0ecceaa25bb7563ebd3abe0 /i18npool | |
parent | bdeb15881f2439665ec52bbfe7f55712eb57c163 (diff) |
loplugin:unusedmethods unused return value in i18npool
Change-Id: I29844009f8357301265421325fc2070f2c9296bf
Diffstat (limited to 'i18npool')
-rw-r--r-- | i18npool/source/search/levdis.cxx | 3 | ||||
-rw-r--r-- | i18npool/source/search/levdis.hxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/i18npool/source/search/levdis.cxx b/i18npool/source/search/levdis.cxx index eca7fbf4aeac..c175ccd1d458 100644 --- a/i18npool/source/search/levdis.cxx +++ b/i18npool/source/search/levdis.cxx @@ -266,7 +266,7 @@ int WLevDistance::WLD( const sal_Unicode* cString, sal_Int32 nStringLen ) // Calculating nLimit, nReplP0, nInsQ0, nDelR0, bSplitCount // from user values nOtherX, nShorterY, nLongerZ, bRelaxed -int WLevDistance::CalcLPQR( int nX, int nY, int nZ, bool bRelaxed ) +void WLevDistance::CalcLPQR( int nX, int nY, int nZ, bool bRelaxed ) { if ( nX < 0 ) nX = 0; // only positive values if ( nY < 0 ) nY = 0; @@ -286,7 +286,6 @@ int WLevDistance::CalcLPQR( int nX, int nY, int nZ, bool bRelaxed ) nInsQ0 = ( nY ? nLimit / nY : nLimit + 1 ); nDelR0 = ( nZ ? nLimit / nZ : nLimit + 1 ); bSplitCount = bRelaxed; - return nLimit; } // greatest common divisor according to Euklid (chaindivision) diff --git a/i18npool/source/search/levdis.hxx b/i18npool/source/search/levdis.hxx index 47d669bd571d..cf7561d013b9 100644 --- a/i18npool/source/search/levdis.hxx +++ b/i18npool/source/search/levdis.hxx @@ -179,7 +179,7 @@ public: /** Calculate the internal weighs corresponding to the user input values. @returns nLimit for later comparison with WLD() */ - int CalcLPQR( int nOtherX, int nShorterY, int nLongerZ, + void CalcLPQR( int nOtherX, int nShorterY, int nLongerZ, bool bRelaxed = true ); inline int GetLimit() const { return nLimit; } |