From 4d08dfa3193a96676c911a44c54a3f512b9ebb03 Mon Sep 17 00:00:00 2001 From: Pierre-André Jacquod Date: Mon, 3 Oct 2011 14:37:15 +0200 Subject: cppcheck reduce scope of lingucomponent/...sspellimp.cxx --- lingucomponent/source/spellcheck/spell/sspellimp.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lingucomponent/source') 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) { -- cgit