sc/source/core/tool/cellkeytranslator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 9c0c19d00953a787e1832213f96d514c2b3c7853 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Feb 4 08:51:01 2025 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Tue Feb 4 11:35:47 2025 +0100 cid#1642560 COPY_INSTEAD_OF_MOVE Change-Id: If2abd138060ce97d2505c0a60f3cc3c6477dcbf9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181088 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sc/source/core/tool/cellkeytranslator.cxx b/sc/source/core/tool/cellkeytranslator.cxx index c54dd50bbc13..2837a4a4aa68 100644 --- a/sc/source/core/tool/cellkeytranslator.cxx +++ b/sc/source/core/tool/cellkeytranslator.cxx @@ -276,11 +276,11 @@ void ScCellKeywordTranslator::addToMap(const OUString& rKey, const OUString& pNa if ( itr == itrEnd ) { // New keyword. - std::vector<ScCellKeyword> aVector { aKeyItem }; + std::vector<ScCellKeyword> aVector { std::move(aKeyItem) }; maStringNameMap.emplace(rKey, aVector); } else - itr->second.push_back(aKeyItem); + itr->second.emplace_back(std::move(aKeyItem)); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */