summaryrefslogtreecommitdiffstats
path: root/sd/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/framework/factories/ViewShellWrapper.cxx2
-rw-r--r--sd/source/ui/inc/framework/ViewShellWrapper.hxx2
-rw-r--r--sd/source/ui/inc/uiobject.hxx2
-rw-r--r--sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx2
-rw-r--r--sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx2
-rw-r--r--sd/source/ui/uitest/uiobject.cxx10
6 files changed, 10 insertions, 10 deletions
diff --git a/sd/source/ui/framework/factories/ViewShellWrapper.cxx b/sd/source/ui/framework/factories/ViewShellWrapper.cxx
index b0daeff82be6..44113c264096 100644
--- a/sd/source/ui/framework/factories/ViewShellWrapper.cxx
+++ b/sd/source/ui/framework/factories/ViewShellWrapper.cxx
@@ -52,7 +52,7 @@ using ::com::sun::star::awt::XWindow;
namespace sd { namespace framework {
ViewShellWrapper::ViewShellWrapper (
- std::shared_ptr<ViewShell> pViewShell,
+ const std::shared_ptr<ViewShell>& pViewShell,
const Reference<XResourceId>& rxViewId,
const Reference<awt::XWindow>& rxWindow)
: ViewShellWrapperInterfaceBase(MutexOwner::maMutex),
diff --git a/sd/source/ui/inc/framework/ViewShellWrapper.hxx b/sd/source/ui/inc/framework/ViewShellWrapper.hxx
index 6105da021f71..8d96a20e9e04 100644
--- a/sd/source/ui/inc/framework/ViewShellWrapper.hxx
+++ b/sd/source/ui/inc/framework/ViewShellWrapper.hxx
@@ -64,7 +64,7 @@ public:
to the ViewShell object.
*/
ViewShellWrapper (
- ::std::shared_ptr<ViewShell> pViewShell,
+ const ::std::shared_ptr<ViewShell>& pViewShell,
const css::uno::Reference<css::drawing::framework::XResourceId>& rxViewId,
const css::uno::Reference<css::awt::XWindow>& rxWindow);
virtual ~ViewShellWrapper() override;
diff --git a/sd/source/ui/inc/uiobject.hxx b/sd/source/ui/inc/uiobject.hxx
index 70d8db549dfe..221ad1847122 100644
--- a/sd/source/ui/inc/uiobject.hxx
+++ b/sd/source/ui/inc/uiobject.hxx
@@ -24,7 +24,7 @@ class ImpressWindowUIObject : public WindowUIObject
{
public:
- ImpressWindowUIObject(VclPtr<sd::Window> xWindow);
+ ImpressWindowUIObject(const VclPtr<sd::Window>& xWindow);
virtual StringMap get_state() override;
diff --git a/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx b/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx
index 276dc2cd791b..75402f6eb9db 100644
--- a/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx
+++ b/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx
@@ -155,7 +155,7 @@ private:
//===== LayeredDevice =========================================================
-LayeredDevice::LayeredDevice (VclPtr<sd::Window> pTargetWindow)
+LayeredDevice::LayeredDevice (const VclPtr<sd::Window>& pTargetWindow)
: mpTargetWindow(pTargetWindow),
mpLayers(new LayerContainer()),
mpBackBuffer(VclPtr<VirtualDevice>::Create(*mpTargetWindow)),
diff --git a/sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx b/sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx
index 487f97963774..c2ca22e706d1 100644
--- a/sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx
+++ b/sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx
@@ -42,7 +42,7 @@ class LayeredDevice
{
public:
- explicit LayeredDevice (VclPtr<sd::Window> pTargetWindow);
+ explicit LayeredDevice (const VclPtr<sd::Window>& pTargetWindow);
~LayeredDevice ();
void Invalidate (
diff --git a/sd/source/ui/uitest/uiobject.cxx b/sd/source/ui/uitest/uiobject.cxx
index 68575ccc75fd..a17f98bb5ad7 100644
--- a/sd/source/ui/uitest/uiobject.cxx
+++ b/sd/source/ui/uitest/uiobject.cxx
@@ -19,7 +19,7 @@
class ImpressSdrObject : public SdrUIObject
{
public:
- ImpressSdrObject(VclPtr<sd::Window> xImpressWin, const OUString& rName);
+ ImpressSdrObject(const VclPtr<sd::Window>& xImpressWin, const OUString& rName);
SdrObject* get_object() override;
@@ -31,7 +31,7 @@ private:
namespace {
-sd::DrawViewShell* getViewShell(VclPtr<sd::Window> xWindow)
+sd::DrawViewShell* getViewShell(const VclPtr<sd::Window>& xWindow)
{
sd::DrawViewShell* pViewShell = dynamic_cast<sd::DrawViewShell*>(xWindow->GetViewShell());
assert(pViewShell);
@@ -47,7 +47,7 @@ OUString getObjectName(SdrObject* pObject)
return pObject->GetName();
}
-SdrObject* getObject(VclPtr<sd::Window> xWindow, const OUString& rName)
+SdrObject* getObject(const VclPtr<sd::Window>& xWindow, const OUString& rName)
{
SdrPage* pPage = getViewShell(xWindow)->getCurrentPage();
@@ -68,7 +68,7 @@ SdrObject* getObject(VclPtr<sd::Window> xWindow, const OUString& rName)
}
-ImpressSdrObject::ImpressSdrObject(VclPtr<sd::Window> xImpressWin, const OUString& rName):
+ImpressSdrObject::ImpressSdrObject(const VclPtr<sd::Window>& xImpressWin, const OUString& rName):
mxWindow(xImpressWin),
maName(rName)
{
@@ -79,7 +79,7 @@ SdrObject* ImpressSdrObject::get_object()
return getObject(mxWindow, maName);
}
-ImpressWindowUIObject::ImpressWindowUIObject(VclPtr<sd::Window> xWindow):
+ImpressWindowUIObject::ImpressWindowUIObject(const VclPtr<sd::Window>& xWindow):
WindowUIObject(xWindow),
mxWindow(xWindow)
{