summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtfdocumentimpl.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-12-17 21:42:24 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-12-18 09:05:01 +0100
commitb85810637d2475496a3055ae8c3f36a5a104a9a1 (patch)
treed626e7e6c6565691d3e2729aef561e0eb374ce32 /writerfilter/source/rtftok/rtfdocumentimpl.cxx
parent4644edc92a93cb80ebe0e409975ff1303927461f (diff)
sw RTF export: don't mark these members as const
As the destructor wants to std::move() these members, and that only has an effect if the member is not const. Simiarly in writerfilter/, there the const prevents the implicit std::move() on return. Change-Id: I42ce393da9033abbd028bd5b83f15f69d34e254d Reviewed-on: https://gerrit.libreoffice.org/85336 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'writerfilter/source/rtftok/rtfdocumentimpl.cxx')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index af97169166ed..8bd50d702c98 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -2081,7 +2081,7 @@ writerfilter::Reference<Properties>::Pointer_t RTFDocumentImpl::createStylePrope
m_aStates.top().getTableSprms().set(NS_ooxml::LN_CT_Style_pPr, pParaProps);
m_aStates.top().getTableSprms().set(NS_ooxml::LN_CT_Style_rPr, pCharProps);
- writerfilter::Reference<Properties>::Pointer_t const pProps(new RTFReferenceProperties(
+ writerfilter::Reference<Properties>::Pointer_t pProps(new RTFReferenceProperties(
m_aStates.top().getTableAttributes(), m_aStates.top().getTableSprms()));
return pProps;
}