summaryrefslogtreecommitdiff
path: root/xmloff/source/chart/MultiPropertySetHandler.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-12 10:45:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-12 15:59:38 +0200
commitca2a4a4b1c839c14832043e714297c30087b4b6d (patch)
tree8229dee461d27537ddb828e6693c27d7a2439c5e /xmloff/source/chart/MultiPropertySetHandler.hxx
parent2f93eb49db71c8cbaffbd022cb2b654d56920bda (diff)
clang-tidy modernize-pass-by-value in xmloff
Change-Id: Ica07e393763343d0f5caaad6a89fa3378f6ad344 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136995 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/chart/MultiPropertySetHandler.hxx')
-rw-r--r--xmloff/source/chart/MultiPropertySetHandler.hxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/xmloff/source/chart/MultiPropertySetHandler.hxx b/xmloff/source/chart/MultiPropertySetHandler.hxx
index d47b942f0fe0..b4bac7128aed 100644
--- a/xmloff/source/chart/MultiPropertySetHandler.hxx
+++ b/xmloff/source/chart/MultiPropertySetHandler.hxx
@@ -26,6 +26,7 @@
#include <rtl/ustring.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/XMultiPropertySet.hpp>
+#include <utility>
/** @descr MultiPropertySetHandler handles the two slightly different
interfaces XPropertySet and XMultiPropertySet for accessing
@@ -48,8 +49,8 @@ public:
/** @descr Create a class instance and store the given name.
@param rName The name of the property.
*/
- explicit PropertyWrapperBase (const OUString & rName)
- : msName (rName)
+ explicit PropertyWrapperBase (OUString aName)
+ : msName (std::move(aName))
{}
virtual ~PropertyWrapperBase()
{}
@@ -125,7 +126,7 @@ public:
is casted later to one of the two of them.
*/
explicit MultiPropertySetHandler (css::uno::Reference<
- css::uno::XInterface> const & xObject);
+ css::uno::XInterface> xObject);
/** @descr Add a property to handle. The type given implicitly by the
reference to a variable is used to create an instance of
the PropertyWrapper template class.
@@ -177,8 +178,8 @@ private:
};
MultiPropertySetHandler::MultiPropertySetHandler (css::uno::Reference<
- css::uno::XInterface> const & xObject)
- : mxObject (xObject)
+ css::uno::XInterface> xObject)
+ : mxObject (std::move(xObject))
{
}