diff options
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/core/CustomAnimationPreset.cxx | 2 | ||||
-rw-r--r-- | sd/source/filter/eppt/pptx-epptooxml.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/framework/factories/ViewShellWrapper.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/inc/framework/ViewShellWrapper.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/inc/uiobject.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx | 2 | ||||
-rw-r--r-- | sd/source/ui/uitest/uiobject.cxx | 10 |
8 files changed, 13 insertions, 12 deletions
diff --git a/sd/source/core/CustomAnimationPreset.cxx b/sd/source/core/CustomAnimationPreset.cxx index 41ae7cfd8b24..b1b21b3c7145 100644 --- a/sd/source/core/CustomAnimationPreset.cxx +++ b/sd/source/core/CustomAnimationPreset.cxx @@ -124,7 +124,7 @@ void implImportLabels( const Reference< XMultiServiceFactory >& xConfigProvider, } } -CustomAnimationPreset::CustomAnimationPreset( CustomAnimationEffectPtr pEffect ) +CustomAnimationPreset::CustomAnimationPreset( const CustomAnimationEffectPtr& pEffect ) { maPresetId = pEffect->getPresetId(); maProperty = pEffect->getProperty(); diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx index 68c0b6efa62e..b0e2b238008f 100644 --- a/sd/source/filter/eppt/pptx-epptooxml.cxx +++ b/sd/source/filter/eppt/pptx-epptooxml.cxx @@ -68,6 +68,7 @@ #include <com/sun/star/document/XDocumentProperties.hpp> #include <com/sun/star/document/XDocumentPropertiesSupplier.hpp> +#include <utility> // presentation namespaces #define PNMSS FSNS(XML_xmlns, XML_a), OUStringToOString(this->getNamespaceURL(OOX_NS(dml)), RTL_TEXTENCODING_UTF8).getStr(), \ @@ -211,7 +212,7 @@ int PowerPointExport::GetPPTXLayoutId( int nOffset ) PowerPointShapeExport::PowerPointShapeExport( FSHelperPtr pFS, ShapeHashMap* pShapeMap, PowerPointExport* pFB ) - : ShapeExport( XML_p, pFS, pShapeMap, pFB ) + : ShapeExport( XML_p, std::move(pFS), pShapeMap, pFB ) , mrExport( *pFB ) , mePageType(UNDEFINED) , mbMaster(false) 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) { |