summaryrefslogtreecommitdiff
path: root/include/svl/urlbmk.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-03 14:13:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-03 18:32:32 +0200
commit5a6b4b4f288621772991269180aa3a2cffff01af (patch)
tree8f29ed7593c8e54dc62a1ffcc41f3570eb984064 /include/svl/urlbmk.hxx
parentf0b7b388ae06d95007b69812bcf844ac9bed15c4 (diff)
clang-tidy modernize-pass-by-value in svl
Change-Id: I184efd7aee2c3eb02399100a4a7500951255d423 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135357 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl/urlbmk.hxx')
-rw-r--r--include/svl/urlbmk.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/svl/urlbmk.hxx b/include/svl/urlbmk.hxx
index a0b97a2b0d00..e2a090806dcb 100644
--- a/include/svl/urlbmk.hxx
+++ b/include/svl/urlbmk.hxx
@@ -21,6 +21,7 @@
#define INCLUDED_SVL_URLBMK_HXX
#include <rtl/ustring.hxx>
+#include <utility>
/**
@@ -36,8 +37,8 @@ class INetBookmark
OUString aDescr;
public:
- INetBookmark( const OUString &rUrl, const OUString &rDescr )
- : aUrl( rUrl ), aDescr( rDescr )
+ INetBookmark( OUString _aUrl, OUString _aDescr )
+ : aUrl(std::move( _aUrl )), aDescr(std::move( _aDescr ))
{}
INetBookmark()
{}