diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-27 10:22:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-27 12:55:06 +0200 |
commit | ba8502545fb5519a5cd13a673ee72d82f0fd8852 (patch) | |
tree | 3193f463e73519e2c410247d6cd73aa3fba6e29a | |
parent | 79baafccf3d390810f516b2cf9cb3ad2b4e9e63b (diff) |
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.grandin@collabora.co.uk>
-rw-r--r-- | include/tools/inetmsg.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
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 ( |