diff options
author | obo <obo@openoffice.org> | 2010-06-22 15:46:16 +0200 |
---|---|---|
committer | obo <obo@openoffice.org> | 2010-06-22 15:46:16 +0200 |
commit | c390fcc3334c9ac89d5e71113d98c7c6357e8606 (patch) | |
tree | 2e5d438cb3a20296d16081b7475f70ffdc90b5a2 /lingucomponent/source | |
parent | 4b7b1d48c579dcbffbb9a1b3b773a89bd47efe71 (diff) | |
parent | a3842e6fcc4f6741e07085bd8fd1a91ad2c07f17 (diff) |
CWS-TOOLING: integrate CWS cmcfixes75
Diffstat (limited to 'lingucomponent/source')
-rw-r--r-- | lingucomponent/source/spellcheck/spell/sspellimp.cxx | 7 |
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; } } |