From 0fa827dbb2147d1d3850b2181eb6ab6a02a04500 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sat, 27 Jan 2024 15:42:54 +0600 Subject: Drop std::as_const from css::uno::Sequence iterations Obsoleted by commit 2484de6728bd11bb7949003d112f1ece2223c7a1 (Remove non-const Sequence::begin()/end() in internal code, 2021-10-15) and commit fb3c04bd1930eedacd406874e1a285d62bbf27d9 (Drop non-const Sequence::operator[] in internal code, 2021-11-05). Change-Id: Idbafef5d34c0d4771cbbf75b9db9712e504164cd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162640 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- shell/source/cmdmail/cmdmailsuppl.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'shell/source') diff --git a/shell/source/cmdmail/cmdmailsuppl.cxx b/shell/source/cmdmail/cmdmailsuppl.cxx index 2128ae009ab2..4582cd9547a5 100644 --- a/shell/source/cmdmail/cmdmailsuppl.cxx +++ b/shell/source/cmdmail/cmdmailsuppl.cxx @@ -218,7 +218,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 : std::as_const(aStringList) ) + for (const auto& rString : aStringList) { aBuffer.append(" --cc "); appendShellWord(aBuffer, rString, false); @@ -226,7 +226,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 : std::as_const(aStringList) ) + for (const auto& rString : aStringList) { aBuffer.append(" --bcc "); appendShellWord(aBuffer, rString, false); @@ -241,7 +241,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM // Append attachments set in the message aStringList = xSimpleMailMessage->getAttachement(); - for ( const auto& rString : std::as_const(aStringList) ) + for (const auto& rString : aStringList) { OUString aSystemPath; if ( FileBase::E_None == FileBase::getSystemPathFromFileURL(rString, aSystemPath) ) -- cgit