diff options
author | Thomas Lange [tl] <tl@openoffice.org> | 2010-08-05 17:16:04 +0200 |
---|---|---|
committer | Thomas Lange [tl] <tl@openoffice.org> | 2010-08-05 17:16:04 +0200 |
commit | 586b0c3bd91d90393ee8c744029a02fdadd9ef06 (patch) | |
tree | 7572bacc732c05aed4080c3dbe337da9177b78fb /lingucomponent/source/spellcheck/spell/sspellimp.cxx | |
parent | cbe34bff4881d62a8026c96aa26723989490d508 (diff) | |
parent | 2ae7ed978e22dbb6fc5e84c3dc686ab4bb9e1cec (diff) |
cws tl82: merge with DEV300_m86
Diffstat (limited to 'lingucomponent/source/spellcheck/spell/sspellimp.cxx')
-rwxr-xr-x | lingucomponent/source/spellcheck/spell/sspellimp.cxx | 10 |
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; } } |