From 8e0918a04ee6797909264943eba23707b224c34c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 15 Aug 2019 13:35:20 +0200 Subject: loplugin:sequenceloop in shell..sot Change-Id: I40e2a1be0ce7df627d3820192d24821ddd7c3e2f Reviewed-on: https://gerrit.libreoffice.org/77527 Tested-by: Jenkins Reviewed-by: Noel Grandin --- shell/source/cmdmail/cmdmailsuppl.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'shell') 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) ) -- cgit