summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 09:11:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 09:54:30 +0200
commit60846212c7f5271a86fd43555d633f77d59f5a10 (patch)
treeba3d9464385a2f3abdeea93b1fe887bf385f8463 /shell
parent8477bbf8d6867e656b8132f0ddd682d08590a547 (diff)
use for-range on Sequence in sfx2..sw
Change-Id: I09806869f2fdbae61f4c5d5c9db6859202bb63b5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94609 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'shell')
-rw-r--r--shell/source/win32/simplemail/smplmailclient.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/source/win32/simplemail/smplmailclient.cxx b/shell/source/win32/simplemail/smplmailclient.cxx
index 45331098b835..97c040321519 100644
--- a/shell/source/win32/simplemail/smplmailclient.cxx
+++ b/shell/source/win32/simplemail/smplmailclient.cxx
@@ -275,18 +275,18 @@ void CSmplMailClient::assembleCommandLine(
rCommandArgs.push_back(to);
}
- Sequence<OUString> ccRecipients = xSimpleMailMessage->getCcRecipient();
- for (int i = 0; i < ccRecipients.getLength(); i++)
+ const Sequence<OUString> ccRecipients = xSimpleMailMessage->getCcRecipient();
+ for (OUString const & s : ccRecipients)
{
rCommandArgs.push_back(CC);
- rCommandArgs.push_back(ccRecipients[i]);
+ rCommandArgs.push_back(s);
}
- Sequence<OUString> bccRecipients = xSimpleMailMessage->getBccRecipient();
- for (int i = 0; i < bccRecipients.getLength(); i++)
+ const Sequence<OUString> bccRecipients = xSimpleMailMessage->getBccRecipient();
+ for (OUString const & s : bccRecipients)
{
rCommandArgs.push_back(BCC);
- rCommandArgs.push_back(bccRecipients[i]);
+ rCommandArgs.push_back(s);
}
OUString from = xSimpleMailMessage->getOriginator();