diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-02-25 21:41:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-02-26 13:30:01 +0100 |
commit | 20b301efef0fce7c92b9fac9e62d38cbfe10529f (patch) | |
tree | d6994636c1d4321429c739e7eab34e447adf3d0e /xmloff | |
parent | 4946efd9b9ea532bc3b54f45f412424d1bbe70b0 (diff) |
cid#1500663 std::move a sal_uInt16 and then return the original is unorthodox
Change-Id: I7d3dcc6f6e625baab702ea16cd72ec85d213f8eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130546
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/namespacemap.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/core/namespacemap.cxx b/xmloff/source/core/namespacemap.cxx index 2a0ca441d05a..4d5ec0d503da 100644 --- a/xmloff/source/core/namespacemap.cxx +++ b/xmloff/source/core/namespacemap.cxx @@ -350,7 +350,7 @@ sal_uInt16 SvXMLNamespaceMap::GetKeyByQName(const OUString& rQName, rtl::Reference<NameSpaceEntry> xEntry(new NameSpaceEntry); xEntry->sPrefix = std::move(sEntryPrefix); xEntry->sName = std::move(sEntryName); - xEntry->nKey = std::move(nKey); + xEntry->nKey = nKey; aNameCache.emplace(rQName, std::move(xEntry)); } } |