summaryrefslogtreecommitdiff
path: root/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-14 10:12:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-14 15:38:12 +0200
commit8c15ccc2671d93b06c00730d03b441f3466984d4 (patch)
tree55e7a129b2a431555009e1f4446dbbc3a0c5ce20 /sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
parenta5d3238104a46f933584cc2a896b00bae82bf4ec (diff)
clang-tidy modernize-pass-by-value in sfx2
Change-Id: I7984f0b52809091511dc01005fdbfeafd521b4bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137048 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/devtools/ObjectInspectorTreeHandler.cxx')
-rw-r--r--sfx2/source/devtools/ObjectInspectorTreeHandler.cxx23
1 files changed, 12 insertions, 11 deletions
diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
index 18c4206e0730..53d4d8b08bab 100644
--- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
+++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
@@ -12,6 +12,7 @@
#include <sfx2/devtools/ObjectInspectorTreeHandler.hxx>
#include <sfx2/sfxresid.hxx>
+#include <utility>
#include <vcl/svapp.hxx>
#include "DevToolsStrings.hrc"
@@ -392,8 +393,8 @@ protected:
OUString msName;
public:
- SimpleStringNode(OUString const& rName)
- : msName(rName)
+ SimpleStringNode(OUString sName)
+ : msName(std::move(sName))
{
}
@@ -412,8 +413,8 @@ private:
uno::Reference<reflection::XIdlMethod> mxMethod;
public:
- MethodNode(uno::Reference<reflection::XIdlMethod> const& xMethod)
- : mxMethod(xMethod)
+ MethodNode(uno::Reference<reflection::XIdlMethod> xMethod)
+ : mxMethod(std::move(xMethod))
{
}
@@ -503,8 +504,8 @@ private:
}
public:
- ClassNode(uno::Reference<reflection::XIdlClass> const& xClass)
- : mxClass(xClass)
+ ClassNode(uno::Reference<reflection::XIdlClass> xClass)
+ : mxClass(std::move(xClass))
{
}
@@ -542,12 +543,12 @@ protected:
createNodeObjectForAny(OUString const& rName, const uno::Any& rAny, OUString const& mrInfo);
public:
- BasicValueNode(OUString const& rName, uno::Any const& rAny, OUString const& rInfo,
- uno::Reference<uno::XComponentContext> const& xContext)
+ BasicValueNode(OUString const& rName, uno::Any aAny, OUString aInfo,
+ uno::Reference<uno::XComponentContext> xContext)
: SimpleStringNode(rName)
- , maAny(rAny)
- , mrInfo(rInfo)
- , mxContext(xContext)
+ , maAny(std::move(aAny))
+ , mrInfo(std::move(aInfo))
+ , mxContext(std::move(xContext))
{
}