diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-03 11:46:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-03 15:04:41 +0200 |
commit | 613467237fa2e9fe7c816d00127db9951c869c13 (patch) | |
tree | 3843b8e646c1cba45c15b7714d95ed03302dcc33 /cui/source/dialogs/cuicharmap.cxx | |
parent | c8642c0ebe4ca16bc06b1b08f9419e4a1a94ba96 (diff) |
clang-tidy modernize-pass-by-value in cui
Change-Id: If3d2717c22e33412f813673a93ccc56d23ab2fa5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135348
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/dialogs/cuicharmap.cxx')
-rw-r--r-- | cui/source/dialogs/cuicharmap.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx index 42c12c5e3ce9..7effeb4462cf 100644 --- a/cui/source/dialogs/cuicharmap.cxx +++ b/cui/source/dialogs/cuicharmap.cxx @@ -21,6 +21,7 @@ #include <stdio.h> +#include <utility> #include <vcl/svapp.hxx> #include <svl/eitem.hxx> #include <svl/intitem.hxx> @@ -52,11 +53,11 @@ using namespace css; SvxCharacterMap::SvxCharacterMap(weld::Widget* pParent, const SfxItemSet* pSet, - const css::uno::Reference<css::frame::XFrame>& rFrame) + css::uno::Reference<css::frame::XFrame> xFrame) : SfxDialogController(pParent, "cui/ui/specialcharacters.ui", "SpecialCharactersDialog") , m_xVirDev(VclPtr<VirtualDevice>::Create()) , isSearchMode(true) - , m_xFrame(rFrame) + , m_xFrame(std::move(xFrame)) , m_aRecentCharView{SvxCharView(m_xVirDev), SvxCharView(m_xVirDev), SvxCharView(m_xVirDev), |