tools/source/xml/XPath.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 1b73d2b71918de2931a24b4baf37f60ff3d501c2 Author: Caolán McNamara <[email protected]> AuthorDate: Mon Dec 22 19:02:59 2025 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Mon Dec 22 21:11:39 2025 +0100 cid#1677775 Variable copied when it could be moved Change-Id: I3e234ce491f00f23df5f8e59fa2a7a7027ce8a0a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196106 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/tools/source/xml/XPath.cxx b/tools/source/xml/XPath.cxx index 06400cfbae0e..e87d7f449de1 100644 --- a/tools/source/xml/XPath.cxx +++ b/tools/source/xml/XPath.cxx @@ -65,7 +65,7 @@ XPath::XPath(xmlDocPtr pDocPtr) XPath::XPath(xmlDocPtr pDocPtr, std::function<void(xmlXPathContextPtr)> funcRegisterNamespaces) : mpXmlDocPtr(pDocPtr) - , mFuncRegisterNamespaces(funcRegisterNamespaces) + , mFuncRegisterNamespaces(std::move(funcRegisterNamespaces)) { }
