diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-12 15:52:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-13 09:22:40 +0200 |
commit | 54a97eb9ddd66294f303189ca12ef726177453cb (patch) | |
tree | fc068c028f44ef859021bf4b1a66daa29491a20d /include/vcl/transfer.hxx | |
parent | 72f631977435a704008a55d3be6489ba619e3064 (diff) |
clang-tidy modernize-pass-by-value in vcl
Change-Id: I9ddb786eb88213c53cf53067ced6899ca40ac6e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137000
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/transfer.hxx')
-rw-r--r-- | include/vcl/transfer.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/vcl/transfer.hxx b/include/vcl/transfer.hxx index 58b43426e07b..bdd8754a9e8a 100644 --- a/include/vcl/transfer.hxx +++ b/include/vcl/transfer.hxx @@ -42,6 +42,7 @@ #include <com/sun/star/embed/Aspects.hpp> #include <memory> #include <mutex> +#include <utility> namespace com::sun::star::datatransfer::dnd { class XDragGestureRecognizer; } namespace com::sun::star::io { class XInputStream; } @@ -103,9 +104,9 @@ struct AcceptDropEvent AcceptDropEvent( sal_Int8 nAction, const Point& rPosPixel, - const css::datatransfer::dnd::DropTargetDragEvent& rDragEvent ) : + css::datatransfer::dnd::DropTargetDragEvent aDragEvent ) : maPosPixel( rPosPixel ), - maDragEvent( rDragEvent ), + maDragEvent(std::move( aDragEvent )), mnAction( nAction ), mbLeaving( false ), mbDefault( false ) {} @@ -120,9 +121,9 @@ struct ExecuteDropEvent ExecuteDropEvent( sal_Int8 nAction, const Point& rPosPixel, - const css::datatransfer::dnd::DropTargetDropEvent& rDropEvent ) : + css::datatransfer::dnd::DropTargetDropEvent aDropEvent ) : maPosPixel( rPosPixel ), - maDropEvent( rDropEvent ), + maDropEvent(std::move( aDropEvent )), mnAction( nAction ), mbDefault( false ) {} }; |