summaryrefslogtreecommitdiff
path: root/svtools/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-13 13:14:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-14 12:15:07 +0200
commit34d8eb4d3f2a75a3a072f5f6a443f959ba99113c (patch)
tree4f9e5ee058152111ed559369ac2a490ad3d06153 /svtools/inc
parent2d009c405714934ae5f95f4131510cb4e9c2493f (diff)
clang-tidy modernize-pass-by-value in svtools
Change-Id: I60e7373c924a479fed72eb4f0538006e3e422004 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137019 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/inc')
-rw-r--r--svtools/inc/framestatuslistener.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/inc/framestatuslistener.hxx b/svtools/inc/framestatuslistener.hxx
index 6b49200399d8..c3ed32233b2c 100644
--- a/svtools/inc/framestatuslistener.hxx
+++ b/svtools/inc/framestatuslistener.hxx
@@ -25,6 +25,7 @@
#include <cppuhelper/basemutex.hxx>
#include <unordered_map>
+#include <utility>
namespace com :: sun :: star :: frame { class XDispatch; }
namespace com :: sun :: star :: frame { class XFrame; }
@@ -70,8 +71,8 @@ class FrameStatusListener : public css::frame::XStatusListener,
protected:
struct Listener
{
- Listener( const css::util::URL& rURL, const css::uno::Reference< css::frame::XDispatch >& rDispatch ) :
- aURL( rURL ), xDispatch( rDispatch ) {}
+ Listener( css::util::URL _aURL, css::uno::Reference< css::frame::XDispatch > _xDispatch ) :
+ aURL(std::move( _aURL )), xDispatch(std::move( _xDispatch )) {}
css::util::URL aURL;
css::uno::Reference< css::frame::XDispatch > xDispatch;