diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-02 15:57:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-02 17:43:58 +0200 |
commit | f5e3ad701e28e0b7d57e434d646a6191e2c1b0c0 (patch) | |
tree | c5b258f85cf54a0d6d982d118ba562b5ff9485aa /avmedia | |
parent | d16122e3e93c2ab4b94d089c4cf4f8ea2dbdf24c (diff) |
clang-tidy modernize-pass-by-value in avmedia
Change-Id: Ia579341951d3fa0a227cdfa888c380b032e2ee2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135312
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'avmedia')
-rw-r--r-- | avmedia/source/viewer/mediawindow.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/avmedia/source/viewer/mediawindow.cxx b/avmedia/source/viewer/mediawindow.cxx index c9b7f9bf20bb..df8110f54e0d 100644 --- a/avmedia/source/viewer/mediawindow.cxx +++ b/avmedia/source/viewer/mediawindow.cxx @@ -23,6 +23,7 @@ #include <bitmaps.hlst> #include <strings.hrc> #include <tools/urlobj.hxx> +#include <utility> #include <vcl/graph.hxx> #include <vcl/svapp.hxx> #include <vcl/weld.hxx> @@ -459,9 +460,9 @@ void MediaWindow::dispatchInsertAVMedia(const css::uno::Reference<css::frame::XD xDispatch->dispatch(aDispatchURL, aArgs); } -PlayerListener::PlayerListener(const std::function<void(const css::uno::Reference<css::media::XPlayer>&)> &rFn) +PlayerListener::PlayerListener(std::function<void(const css::uno::Reference<css::media::XPlayer>&)> fn) : PlayerListener_BASE(m_aMutex) - , m_aFn(rFn) + , m_aFn(std::move(fn)) { } |