include/tools/inetmsg.hxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit ba8502545fb5519a5cd13a673ee72d82f0fd8852
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Fri May 27 10:22:35 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Fri May 27 12:55:06 2022 +0200

    clang-tidy modernize-pass-by-value in tools
    
    Change-Id: Ib6ff202f5556f3342fb4e60de7e16b5107669319
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135037
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/include/tools/inetmsg.hxx b/include/tools/inetmsg.hxx
index 79c7aca936b4..8617b0b91bf1 100644
--- a/include/tools/inetmsg.hxx
+++ b/include/tools/inetmsg.hxx
@@ -26,6 +26,7 @@
 #include <tools/stream.hxx>
 
 #include <string_view>
+#include <utility>
 #include <vector>
 #include <map>
 #include <memory>
@@ -42,9 +43,8 @@ public:
     INetMessageHeader()
     {}
 
-    INetMessageHeader (
-        const OString& rName, const OString& rValue)
-        : m_aName (rName), m_aValue (rValue)
+    INetMessageHeader(OString aName, OString aValue)
+        : m_aName (std::move(aName)), m_aValue (std::move(aValue))
     {}
 
     INetMessageHeader (

Reply via email to