summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 13:35:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-15 20:51:38 +0200
commit8e0918a04ee6797909264943eba23707b224c34c (patch)
tree5690f8fbe14092816805ac80d60b7d77a19d0998 /shell
parent39921c1657d0d131ab7ed6c5490052f53bb764cb (diff)
loplugin:sequenceloop in shell..sot
Change-Id: I40e2a1be0ce7df627d3820192d24821ddd7c3e2f Reviewed-on: https://gerrit.libreoffice.org/77527 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'shell')
-rw-r--r--shell/source/cmdmail/cmdmailsuppl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/source/cmdmail/cmdmailsuppl.cxx b/shell/source/cmdmail/cmdmailsuppl.cxx
index df8e1f5c170e..bbd0ae07d4cf 100644
--- a/shell/source/cmdmail/cmdmailsuppl.cxx
+++ b/shell/source/cmdmail/cmdmailsuppl.cxx
@@ -237,7 +237,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
// Append carbon copy recipients set in the message
Sequence< OUString > aStringList = xSimpleMailMessage->getCcRecipient();
- for ( const auto& rString : aStringList )
+ for ( const auto& rString : std::as_const(aStringList) )
{
aBuffer.append(" --cc ");
appendShellWord(aBuffer, rString, false);
@@ -245,7 +245,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
// Append blind carbon copy recipients set in the message
aStringList = xSimpleMailMessage->getBccRecipient();
- for ( const auto& rString : aStringList )
+ for ( const auto& rString : std::as_const(aStringList) )
{
aBuffer.append(" --bcc ");
appendShellWord(aBuffer, rString, false);
@@ -260,7 +260,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
// Append attachments set in the message
aStringList = xSimpleMailMessage->getAttachement();
- for ( const auto& rString : aStringList )
+ for ( const auto& rString : std::as_const(aStringList) )
{
OUString aSystemPath;
if ( FileBase::E_None == FileBase::getSystemPathFromFileURL(rString, aSystemPath) )