summaryrefslogtreecommitdiffstats
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-10 19:59:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-10 21:03:18 +0200
commitf67392948d625db9ce115092e4c9bfd301268a25 (patch)
tree0bd1490ad019c3c172229e8990c62262c3f557fe /dbaccess
parentgtk4: popdown context menu when radio/check is toggled (diff)
downloadcore-f67392948d625db9ce115092e4c9bfd301268a25.tar.gz
core-f67392948d625db9ce115092e4c9bfd301268a25.zip
loplugin:moveparam in xmloff
Change-Id: I46c1c8dc46cd2b8470b69506f6609f8bd7e42211 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123347 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/filter/xml/xmlExport.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/dbaccess/source/filter/xml/xmlExport.cxx b/dbaccess/source/filter/xml/xmlExport.cxx
index 1e4f79d4ce44..e0c1304c8cc6 100644
--- a/dbaccess/source/filter/xml/xmlExport.cxx
+++ b/dbaccess/source/filter/xml/xmlExport.cxx
@@ -1071,12 +1071,11 @@ void ODBExport::exportAutoStyle(XPropertySet* _xProp)
,TExportPropMapperPair(m_xRowExportHelper,TEnumMapperPair(&m_aRowAutoStyleNames,XmlStyleFamily::TABLE_ROW))
};
- std::vector< XMLPropertyState > aPropertyStates;
for (const auto & i : pExportHelper)
{
- aPropertyStates = i.first->Filter(*this, _xProp);
+ std::vector< XMLPropertyState > aPropertyStates = i.first->Filter(*this, _xProp);
if ( !aPropertyStates.empty() )
- i.second.first->emplace( _xProp,GetAutoStylePool()->Add( i.second.second, aPropertyStates ) );
+ i.second.first->emplace( _xProp,GetAutoStylePool()->Add( i.second.second, std::move(aPropertyStates) ) );
}
Reference< XNameAccess > xCollection;
@@ -1148,7 +1147,7 @@ void ODBExport::exportAutoStyle(XPropertySet* _xProp)
if ( XmlStyleFamily::TABLE_CELL == i.second.second )
aPropStates.insert( aPropStates.end(), m_aCurrentPropertyStates.begin(), m_aCurrentPropertyStates.end() );
if ( !aPropStates.empty() )
- i.second.first->emplace( _xProp,GetAutoStylePool()->Add( i.second.second, aPropStates ) );
+ i.second.first->emplace( _xProp,GetAutoStylePool()->Add( i.second.second, std::move(aPropStates) ) );
}
}
}