summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-02 15:25:52 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-07 15:57:46 +0200
commit329841d0189c939a072c004dc96230d1e9f30050 (patch)
tree827fdece1ed3f04de03388b78bc68d670b74b776 /lingucomponent
parent25cd5ef3de74c9c0b0cd739e479a256110a99ddc (diff)
cppcheck reduce scope in linguacomponent/...sspellimp.cxx
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 31bcadce6d0b..004d57ec8732 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -422,8 +422,6 @@ Reference< XSpellAlternatives >
Hunspell* pMS = NULL;
rtl_TextEncoding eEnc = RTL_TEXTENCODING_DONTKNOW;
- int count = 0;
- int numsug = 0;
// first handle smart quotes (single and double)
OUStringBuffer rBuf(rWord);
@@ -442,14 +440,14 @@ Reference< XSpellAlternatives >
if (n)
{
sal_Int16 nLang = LocaleToLanguage( rLocale );
+ int numsug = 0;
Sequence< OUString > aStr( 0 );
-
- for (int i =0; i < numdict; i++)
+ for (int i = 0; i < numdict; i++)
{
pMS = NULL;
eEnc = RTL_TEXTENCODING_DONTKNOW;
- count = 0;
+ int count = 0;
if (rLocale == aDLocs[i])
{