Kaydet (Commit) ad24a7c7 authored tarafından Miklos Vajna's avatar Miklos Vajna

oox, sfx2: can use std::move() here

Change-Id: I0add196f79045e8cb7280b2b7d1d8620e4ec669e
Reviewed-on: https://gerrit.libreoffice.org/34013Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst f5245bf4
......@@ -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);
......
......@@ -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;
......
......@@ -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))
{
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment