summaryrefslogtreecommitdiff
path: root/sfx2/source/devtools
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/devtools')
-rw-r--r--sfx2/source/devtools/DocumentModelTreeHandler.cxx12
-rw-r--r--sfx2/source/devtools/ObjectInspectorTreeHandler.cxx23
-rw-r--r--sfx2/source/devtools/SelectionChangeHandler.hxx5
3 files changed, 21 insertions, 19 deletions
diff --git a/sfx2/source/devtools/DocumentModelTreeHandler.cxx b/sfx2/source/devtools/DocumentModelTreeHandler.cxx
index c5358c02b48e..bbcb17a3f74c 100644
--- a/sfx2/source/devtools/DocumentModelTreeHandler.cxx
+++ b/sfx2/source/devtools/DocumentModelTreeHandler.cxx
@@ -36,6 +36,7 @@
#include <com/sun/star/text/XTextGraphicObjectsSupplier.hpp>
#include <com/sun/star/text/XTextEmbeddedObjectsSupplier.hpp>
#include <com/sun/star/style/XStyleFamiliesSupplier.hpp>
+#include <utility>
using namespace css;
@@ -63,10 +64,9 @@ protected:
css::uno::Reference<css::uno::XInterface> mxObject;
public:
- DocumentModelTreeEntry(OUString const& rString,
- css::uno::Reference<css::uno::XInterface> const& xObject)
- : maString(rString)
- , mxObject(xObject)
+ DocumentModelTreeEntry(OUString aString, css::uno::Reference<css::uno::XInterface> xObject)
+ : maString(std::move(aString))
+ , mxObject(std::move(xObject))
{
}
@@ -701,9 +701,9 @@ public:
DocumentModelTreeHandler::DocumentModelTreeHandler(
std::unique_ptr<weld::TreeView>& pDocumentModelTree,
- css::uno::Reference<css::uno::XInterface> const& xDocument)
+ css::uno::Reference<css::uno::XInterface> xDocument)
: mpDocumentModelTree(pDocumentModelTree)
- , mxDocument(xDocument)
+ , mxDocument(std::move(xDocument))
{
mpDocumentModelTree->connect_expanding(LINK(this, DocumentModelTreeHandler, ExpandingHandler));
}
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))
{
}
diff --git a/sfx2/source/devtools/SelectionChangeHandler.hxx b/sfx2/source/devtools/SelectionChangeHandler.hxx
index 15a2b35963e2..57224e056a52 100644
--- a/sfx2/source/devtools/SelectionChangeHandler.hxx
+++ b/sfx2/source/devtools/SelectionChangeHandler.hxx
@@ -16,6 +16,7 @@
#include <com/sun/star/view/XSelectionSupplier.hpp>
#include <comphelper/compbase.hxx>
+#include <utility>
typedef comphelper::WeakComponentImplHelper<css::view::XSelectionChangeListener>
SelectionChangeHandlerInterfaceBase;
@@ -32,9 +33,9 @@ private:
VclPtr<DevelopmentToolDockingWindow> mpDockingWindow;
public:
- SelectionChangeHandler(const css::uno::Reference<css::frame::XController>& rxController,
+ SelectionChangeHandler(css::uno::Reference<css::frame::XController> xController,
DevelopmentToolDockingWindow* pDockingWindow)
- : mxController(rxController)
+ : mxController(std::move(xController))
, mpDockingWindow(pDockingWindow)
{
css::uno::Reference<css::view::XSelectionSupplier> xSupplier(mxController,