summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorobo <obo@openoffice.org>2010-06-22 15:46:16 +0200
committerobo <obo@openoffice.org>2010-06-22 15:46:16 +0200
commitc48b72e7694a494e563aca31e4635f61ba4f1a6f (patch)
treef8355d1ed2b9abbe1cbfdecf0a4d2d5ad016efbc /lingucomponent
parentb6a705c9d40a88b57a070bf4a965fb2d8eb125ed (diff)
parent8360c03032e823606219e41da9c508caa78769a3 (diff)
CWS-TOOLING: integrate CWS cmcfixes75
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index c0429b4e5..894f9fd33 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -452,17 +452,14 @@ Reference< XSpellAlternatives >
count = pMS->suggest(&suglst, (const char *) aWrd.getStr());
if (count) {
-
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]),aEnc);
pStr[numsug + ii] = cvtwrd;
- free(suglst[ii]);
}
- free(suglst);
+ pMS->free_list(&suglst, count);
numsug += count;
}
}