summaryrefslogtreecommitdiff
path: root/lingucomponent/source/spellcheck/spell/sspellimp.cxx
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2010-08-05 17:16:04 +0200
committerThomas Lange [tl] <tl@openoffice.org>2010-08-05 17:16:04 +0200
commit586b0c3bd91d90393ee8c744029a02fdadd9ef06 (patch)
tree7572bacc732c05aed4080c3dbe337da9177b78fb /lingucomponent/source/spellcheck/spell/sspellimp.cxx
parentcbe34bff4881d62a8026c96aa26723989490d508 (diff)
parent2ae7ed978e22dbb6fc5e84c3dc686ab4bb9e1cec (diff)
cws tl82: merge with DEV300_m86
Diffstat (limited to 'lingucomponent/source/spellcheck/spell/sspellimp.cxx')
-rwxr-xr-xlingucomponent/source/spellcheck/spell/sspellimp.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index d85595e996d1..551929864b55 100755
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -459,14 +459,12 @@ Reference< XSpellAlternatives >
{
aStr.realloc( numsug + count );
OUString *pStr = aStr.getArray();
- for (int ii=0; ii < count; ii++)
+ for (int ii=0; ii < count; ++ii)
{
- // if needed add: if (suglst[ii] == NULL) continue;
- OUString cvtwrd(suglst[ii],strlen(suglst[ii]),eEnc);
- pStr[numsug + ii] = cvtwrd;
- free(suglst[ii]);
+ OUString cvtwrd(suglst[ii],strlen(suglst[ii]),aEnc);
+ pStr[numsug + ii] = cvtwrd;
}
- free(suglst);
+ pMS->free_list(&suglst, count);
numsug += count;
}
}