summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-02-08 08:21:05 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-02-08 08:19:34 +0000
commitad24a7c7f4deca8ee7755f68018884300fd861e0 (patch)
treef13a1dd01a6b32c4712b3ac58f1aa670e169b415 /sfx2
parentloplugin:unusedenumconstants read-only constants in xmloff (diff)
downloadcore-ad24a7c7f4deca8ee7755f68018884300fd861e0.tar.gz
core-ad24a7c7f4deca8ee7755f68018884300fd861e0.zip
oox, sfx2: can use std::move() here
Change-Id: I0add196f79045e8cb7280b2b7d1d8620e4ec669e Reviewed-on: https://gerrit.libreoffice.org/34013 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/classificationhelper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/view/classificationhelper.cxx b/sfx2/source/view/classificationhelper.cxx
index 63f06265f300..a63b804d6cdf 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))
{
}