diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-30 15:25:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-30 19:58:54 +0100 |
commit | 5096d072becf9565b0edec66a872bdb74da1d10a (patch) | |
tree | 15c52c3f3b714f44e4ffab26f7b778f74a34ce2c /lingucomponent/source/spellcheck/spell | |
parent | d2fd70c655b45f1d4ea570fa0455231d5d059709 (diff) |
cid#1545965 COPY_INSTEAD_OF_MOVE
and
cid#1545849 COPY_INSTEAD_OF_MOVE
cid#1545814 COPY_INSTEAD_OF_MOVE
cid#1545685 COPY_INSTEAD_OF_MOVE
cid#1545583 COPY_INSTEAD_OF_MOVE
cid#1545575 COPY_INSTEAD_OF_MOVE
cid#1545517 COPY_INSTEAD_OF_MOVE
cid#1545474 COPY_INSTEAD_OF_MOVE
Change-Id: I79a47ee34dace3a4664bfece26c59e719f469cab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161448
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'lingucomponent/source/spellcheck/spell')
-rw-r--r-- | lingucomponent/source/spellcheck/spell/sspellimp.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index 193ddb2c32cb..6f30702fce7d 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -479,8 +479,7 @@ Reference< XSpellAlternatives > OUString *pStr = aStr.getArray(); for (size_t ii = 0; ii < suglst.size(); ++ii) { - OUString cvtwrd(suglst[ii].c_str(), suglst[ii].size(), eEnc); - pStr[numsug + ii] = cvtwrd; + pStr[numsug + ii] = OUString(suglst[ii].c_str(), suglst[ii].size(), eEnc); } numsug += suglst.size(); } |