summaryrefslogtreecommitdiff
path: root/sw/source/ui/vba/vbaview.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-11 11:04:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-12 08:04:16 +0200
commit24865e2d57a32aab7212b1a283f9b30215900dda (patch)
tree9fce0db252a9a8b9959b46ce7cad326be6255329 /sw/source/ui/vba/vbaview.cxx
parent7786bafdb8951aa3f0acda801ddb3704c81d00d8 (diff)
clang-tidy modernize-pass-by-value in sw
Change-Id: I9a3b33595e34a264baeede33672a0c090ae85157 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138134 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/vba/vbaview.cxx')
-rw-r--r--sw/source/ui/vba/vbaview.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/ui/vba/vbaview.cxx b/sw/source/ui/vba/vbaview.cxx
index cb3c40321935..1e620cc5c56a 100644
--- a/sw/source/ui/vba/vbaview.cxx
+++ b/sw/source/ui/vba/vbaview.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "vbaview.hxx"
+#include <utility>
#include <vbahelper/vbahelper.hxx>
#include <basic/sberrors.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
@@ -44,8 +45,8 @@ using namespace ::com::sun::star;
const sal_Int32 DEFAULT_BODY_DISTANCE = 500;
SwVbaView::SwVbaView( const uno::Reference< ooo::vba::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext,
- const uno::Reference< frame::XModel >& rModel ) :
- SwVbaView_BASE( rParent, rContext ), mxModel( rModel )
+ uno::Reference< frame::XModel > xModel ) :
+ SwVbaView_BASE( rParent, rContext ), mxModel(std::move( xModel ))
{
uno::Reference< frame::XController > xController = mxModel->getCurrentController();