From 9e0332bfb9d71a37d80602034b8cfd0efb93cee7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 13 Jun 2022 16:28:20 +0200 Subject: clang-tidy modernize-pass-by-value in dbaccess Change-Id: I8f89ec8a73f82fd93320a710165df17180939f96 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135731 Tested-by: Jenkins Reviewed-by: Noel Grandin --- dbaccess/source/ui/dlg/CollectionView.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dbaccess/source/ui/dlg/CollectionView.cxx') diff --git a/dbaccess/source/ui/dlg/CollectionView.cxx b/dbaccess/source/ui/dlg/CollectionView.cxx index 2e02fda505e0..56fd5f6f5b93 100644 --- a/dbaccess/source/ui/dlg/CollectionView.cxx +++ b/dbaccess/source/ui/dlg/CollectionView.cxx @@ -42,6 +42,7 @@ #include #include #include +#include namespace dbaui { @@ -58,10 +59,10 @@ using namespace comphelper; OCollectionView::OCollectionView(weld::Window* pParent, const Reference< XContent>& _xContent, const OUString& _sDefaultName, - const css::uno::Reference< css::uno::XComponentContext >& _rxContext) + css::uno::Reference< css::uno::XComponentContext > _xContext) : GenericDialogController(pParent, "dbaccess/ui/collectionviewdialog.ui", "CollectionView") , m_xContent(_xContent) - , m_xContext(_rxContext) + , m_xContext(std::move(_xContext)) , m_bCreateForm(true) , m_xFTCurrentPath(m_xBuilder->weld_label("currentPathLabel")) , m_xNewFolder(m_xBuilder->weld_button("newFolderButton")) -- cgit