diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-20 09:51:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-21 08:59:50 +0200 |
commit | 85f4938719180e1e344b28c073f909df6f972f96 (patch) | |
tree | 21aa235575692503cf2a2d40f0e63b7aad661b9f /svx/source/accessibility/DescriptionGenerator.cxx | |
parent | cf69bb4f503eb8b3966d5caf825e0c05264a369e (diff) |
clang-tidy modernize-pass-by-value in svx
Change-Id: Iedd87d321f4d161574df87629fdd6c7714ff31c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137248
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/accessibility/DescriptionGenerator.cxx')
-rw-r--r-- | svx/source/accessibility/DescriptionGenerator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/accessibility/DescriptionGenerator.cxx b/svx/source/accessibility/DescriptionGenerator.cxx index fe410914910f..ad133fa8f4bf 100644 --- a/svx/source/accessibility/DescriptionGenerator.cxx +++ b/svx/source/accessibility/DescriptionGenerator.cxx @@ -23,6 +23,7 @@ #include <com/sun/star/beans/XPropertyState.hpp> #include <com/sun/star/container/XNamed.hpp> #include <com/sun/star/drawing/XShape.hpp> +#include <utility> #include <vcl/svapp.hxx> // Includes for string resources. @@ -35,8 +36,8 @@ using namespace ::com::sun::star; namespace accessibility { -DescriptionGenerator::DescriptionGenerator(const uno::Reference<drawing::XShape>& xShape) - : mxShape(xShape) +DescriptionGenerator::DescriptionGenerator(uno::Reference<drawing::XShape> xShape) + : mxShape(std::move(xShape)) , mxSet(mxShape, uno::UNO_QUERY) , mbIsFirstProperty(true) { |