summaryrefslogtreecommitdiff
path: root/xmloff/source/script
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 20:26:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-16 08:11:34 +0200
commit50679d449fa71bebdc3cba1d30c6c81ac846990c (patch)
treef903dc5160a9953cd9211efe44261ba7cd77b520 /xmloff/source/script
parenta0073744aac89648e89506b79e227b17dacf58d0 (diff)
loplugin:sequenceloop in xmloff
Change-Id: I1fde11da5f6e97255a9140f11c298d6d525f7230 Reviewed-on: https://gerrit.libreoffice.org/77543 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/script')
-rw-r--r--xmloff/source/script/XMLEventExport.cxx2
-rw-r--r--xmloff/source/script/XMLScriptExportHandler.cxx2
-rw-r--r--xmloff/source/script/XMLStarBasicExportHandler.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/script/XMLEventExport.cxx b/xmloff/source/script/XMLEventExport.cxx
index 02e720b643db..882b4ae3bf76 100644
--- a/xmloff/source/script/XMLEventExport.cxx
+++ b/xmloff/source/script/XMLEventExport.cxx
@@ -110,7 +110,7 @@ void XMLEventExport::Export( Reference<XNameAccess> const & rAccess,
bool bStarted = false;
// iterate over all event types
- Sequence<OUString> aNames = rAccess->getElementNames();
+ const Sequence<OUString> aNames = rAccess->getElementNames();
for(const auto& rName : aNames)
{
// translate name
diff --git a/xmloff/source/script/XMLScriptExportHandler.cxx b/xmloff/source/script/XMLScriptExportHandler.cxx
index b2fe8d6497c5..aaed4ded0e86 100644
--- a/xmloff/source/script/XMLScriptExportHandler.cxx
+++ b/xmloff/source/script/XMLScriptExportHandler.cxx
@@ -44,7 +44,7 @@ XMLScriptExportHandler::~XMLScriptExportHandler()
void XMLScriptExportHandler::Export(
SvXMLExport& rExport,
const OUString& rEventQName,
- Sequence<PropertyValue> & rValues,
+ const Sequence<PropertyValue> & rValues,
bool bUseWhitespace)
{
diff --git a/xmloff/source/script/XMLStarBasicExportHandler.cxx b/xmloff/source/script/XMLStarBasicExportHandler.cxx
index 0502bbedcd00..ed6d3a136b04 100644
--- a/xmloff/source/script/XMLStarBasicExportHandler.cxx
+++ b/xmloff/source/script/XMLStarBasicExportHandler.cxx
@@ -49,7 +49,7 @@ XMLStarBasicExportHandler::~XMLStarBasicExportHandler()
void XMLStarBasicExportHandler::Export(
SvXMLExport& rExport,
const OUString& rEventQName,
- Sequence<PropertyValue> & rValues,
+ const Sequence<PropertyValue> & rValues,
bool bUseWhitespace)
{
rExport.AddAttribute(XML_NAMESPACE_SCRIPT, XML_LANGUAGE,