summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-10-31 11:23:11 +0100
committerLuboš Luňák <l.lunak@collabora.com>2021-10-31 15:52:02 +0100
commitb5e701d36ec16776e01597fd250dbde2e73fad3a (patch)
treec5f5fee0355dc6eca66dd4dcaca40a78e63dc6cf /xmloff
parentd4b63c4562ec4c612df675502fd35c7c88bc432d (diff)
add o3tl::span ctor from std::vector
Makes code simpler, and std::span can be constructed from std::vector too. Change-Id: Iae26b53c52148c19d9068a63126a7393d098d654 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124507 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Luboš Luňák <l.lunak@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtparae.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index b444635af77e..c6c8dca09f60 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -510,7 +510,8 @@ void FieldParamExporter::ExportParameter(const OUString& sKey, const OUString& s
void XMLTextParagraphExport::Add( XmlStyleFamily nFamily,
const Reference < XPropertySet > & rPropSet,
- const o3tl::span<XMLPropertyState> aAddStates, bool bDontSeek )
+ const o3tl::span<const XMLPropertyState> aAddStates,
+ bool bDontSeek )
{
rtl::Reference < SvXMLExportPropertyMapper > xPropMapper;
switch( nFamily )
@@ -734,7 +735,7 @@ OUString XMLTextParagraphExport::Find(
XmlStyleFamily nFamily,
const Reference < XPropertySet > & rPropSet,
const OUString& rParent,
- const o3tl::span<XMLPropertyState> aAddStates) const
+ const o3tl::span<const XMLPropertyState> aAddStates) const
{
OUString sName( rParent );
rtl::Reference < SvXMLExportPropertyMapper > xPropMapper;