diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-14 10:12:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-14 15:38:12 +0200 |
commit | 8c15ccc2671d93b06c00730d03b441f3466984d4 (patch) | |
tree | 55e7a129b2a431555009e1f4446dbbc3a0c5ce20 /sfx2/source/notify | |
parent | a5d3238104a46f933584cc2a896b00bae82bf4ec (diff) |
clang-tidy modernize-pass-by-value in sfx2
Change-Id: I7984f0b52809091511dc01005fdbfeafd521b4bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137048
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/notify')
-rw-r--r-- | sfx2/source/notify/hintpost.cxx | 5 | ||||
-rw-r--r-- | sfx2/source/notify/openurlhint.cxx | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sfx2/source/notify/hintpost.cxx b/sfx2/source/notify/hintpost.cxx index 446c7a954ba9..aa125d212943 100644 --- a/sfx2/source/notify/hintpost.cxx +++ b/sfx2/source/notify/hintpost.cxx @@ -20,10 +20,11 @@ #include <hintpost.hxx> #include <sfx2/request.hxx> +#include <utility> #include <vcl/svapp.hxx> -SfxHintPoster::SfxHintPoster(const std::function<void(std::unique_ptr<SfxRequest>)>& rLink) - : m_Link(rLink) +SfxHintPoster::SfxHintPoster(std::function<void(std::unique_ptr<SfxRequest>)> aLink) + : m_Link(std::move(aLink)) { } diff --git a/sfx2/source/notify/openurlhint.cxx b/sfx2/source/notify/openurlhint.cxx index ca831a6f45bc..539d28b899e1 100644 --- a/sfx2/source/notify/openurlhint.cxx +++ b/sfx2/source/notify/openurlhint.cxx @@ -18,9 +18,10 @@ */ #include <openurlhint.hxx> +#include <utility> -SfxOpenUrlHint::SfxOpenUrlHint( const OUString& sDocumentURL ) : - msDocumentURL(sDocumentURL) { } +SfxOpenUrlHint::SfxOpenUrlHint( OUString sDocumentURL ) : + msDocumentURL(std::move(sDocumentURL)) { } const OUString& SfxOpenUrlHint::GetDocumentURL() const { |