summaryrefslogtreecommitdiff
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
commitc390fcc3334c9ac89d5e71113d98c7c6357e8606 (patch)
tree2e5d438cb3a20296d16081b7475f70ffdc90b5a2
parent4b7b1d48c579dcbffbb9a1b3b773a89bd47efe71 (diff)
parenta3842e6fcc4f6741e07085bd8fd1a91ad2c07f17 (diff)
CWS-TOOLING: integrate CWS cmcfixes75
-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 8486f4fb38fd..0cb6ad8ec3da 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;
}
}