[Libreoffice-commits] core.git: oox/source sfx2/source
Miklos Vajna
vmiklos at collabora.co.uk
Wed Feb 8 08:19:58 UTC 2017
oox/source/shape/WpsContext.cxx | 4 ++--
oox/source/shape/WpsContext.hxx | 2 +-
sfx2/source/view/classificationhelper.cxx | 6 +++---
3 files changed, 6 insertions(+), 6 deletions(-)
New commits:
commit ad24a7c7f4deca8ee7755f68018884300fd861e0
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Wed Feb 8 08:21:05 2017 +0100
oox, sfx2: can use std::move() here
Change-Id: I0add196f79045e8cb7280b2b7d1d8620e4ec669e
Reviewed-on: https://gerrit.libreoffice.org/34013
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
Tested-by: Jenkins <ci at libreoffice.org>
diff --git a/oox/source/shape/WpsContext.cxx b/oox/source/shape/WpsContext.cxx
index 5fbea5f..bfc2f5c 100644
--- a/oox/source/shape/WpsContext.cxx
+++ b/oox/source/shape/WpsContext.cxx
@@ -32,9 +32,9 @@ namespace oox
namespace shape
{
-WpsContext::WpsContext(ContextHandler2Helper& rParent, uno::Reference<drawing::XShape> const& xShape)
+WpsContext::WpsContext(ContextHandler2Helper& rParent, uno::Reference<drawing::XShape> xShape)
: ContextHandler2(rParent),
- mxShape(xShape)
+ mxShape(std::move(xShape))
{
mpShape.reset(new oox::drawingml::Shape("com.sun.star.drawing.CustomShape"));
mpShape->setWps(true);
diff --git a/oox/source/shape/WpsContext.hxx b/oox/source/shape/WpsContext.hxx
index 03091c7..bbb8db8 100644
--- a/oox/source/shape/WpsContext.hxx
+++ b/oox/source/shape/WpsContext.hxx
@@ -22,7 +22,7 @@ namespace shape
class WpsContext : public oox::core::ContextHandler2
{
public:
- WpsContext(oox::core::ContextHandler2Helper& rParent, css::uno::Reference<css::drawing::XShape> const& xShape);
+ WpsContext(oox::core::ContextHandler2Helper& rParent, css::uno::Reference<css::drawing::XShape> xShape);
virtual ~WpsContext() override;
virtual oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken, const oox::AttributeList& rAttribs) override;
diff --git a/sfx2/source/view/classificationhelper.cxx b/sfx2/source/view/classificationhelper.cxx
index 63f0626..a63b804 100644
--- a/sfx2/source/view/classificationhelper.cxx
+++ b/sfx2/source/view/classificationhelper.cxx
@@ -321,7 +321,7 @@ public:
std::vector<SfxClassificationCategory> m_aCategories;
uno::Reference<document::XDocumentProperties> m_xDocumentProperties;
- explicit Impl(const uno::Reference<document::XDocumentProperties>& xDocumentProperties);
+ explicit Impl(uno::Reference<document::XDocumentProperties> xDocumentProperties);
void parsePolicy();
/// Synchronize m_aLabels back to the document properties.
void pushToDocumentProperties();
@@ -329,8 +329,8 @@ public:
void setStartValidity(SfxClassificationPolicyType eType);
};
-SfxClassificationHelper::Impl::Impl(const uno::Reference<document::XDocumentProperties>& xDocumentProperties)
- : m_xDocumentProperties(xDocumentProperties)
+SfxClassificationHelper::Impl::Impl(uno::Reference<document::XDocumentProperties> xDocumentProperties)
+ : m_xDocumentProperties(std::move(xDocumentProperties))
{
}
More information about the Libreoffice-commits
mailing list