summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-01 10:20:16 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-01 13:46:31 +0200
commit2a662212982d5baa3b69d34b4074d93d39287898 (patch)
tree77a56ad374b1536a061b38b0849848e8c9793853 /shell
parent6d9203b351cf4ef9fa05343f67633a0c633379a4 (diff)
loplugin:sequenceloop (clang-cl)
Change-Id: Ie55967043fd6584c8b9a0ad66fad118c70bda8f0 Reviewed-on: https://gerrit.libreoffice.org/79927 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/source/win32/simplemail/smplmailclient.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/source/win32/simplemail/smplmailclient.cxx b/shell/source/win32/simplemail/smplmailclient.cxx
index 7b225d16975b..45331098b835 100644
--- a/shell/source/win32/simplemail/smplmailclient.cxx
+++ b/shell/source/win32/simplemail/smplmailclient.cxx
@@ -303,7 +303,8 @@ void CSmplMailClient::assembleCommandLine(
rCommandArgs.push_back(subject);
}
- for (const auto& attachment : xSimpleMailMessage->getAttachement())
+ auto const attachments = xSimpleMailMessage->getAttachement();
+ for (const auto& attachment : attachments)
{
OUString sDisplayName;
OUString sTempFileURL(CopyAttachment(attachment, sDisplayName));