diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-03 14:37:15 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:56 +0200 |
commit | 4d08dfa3193a96676c911a44c54a3f512b9ebb03 (patch) | |
tree | 6b9714bd2c763920ba186b0de96df6fb37b1ec54 /lingucomponent/source | |
parent | e47e88723cd3f330c158a224cd7ea42141ccd1dd (diff) |
cppcheck reduce scope of lingucomponent/...sspellimp.cxx
Diffstat (limited to 'lingucomponent/source')
-rw-r--r-- | lingucomponent/source/spellcheck/spell/sspellimp.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index 004d57ec8732..2d7aa3d2c8e9 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -447,7 +447,6 @@ Reference< XSpellAlternatives > { pMS = NULL; eEnc = RTL_TEXTENCODING_DONTKNOW; - int count = 0; if (rLocale == aDLocs[i]) { @@ -459,7 +458,7 @@ Reference< XSpellAlternatives > { char ** suglst = NULL; OString aWrd(OU2ENC(nWord,eEnc)); - count = pMS->suggest(&suglst, (const char *) aWrd.getStr()); + int count = pMS->suggest(&suglst, (const char *) aWrd.getStr()); if (count) { |