diff options
Diffstat (limited to 'shell/source/win32/simplemail/smplmailclient.cxx')
-rw-r--r-- | shell/source/win32/simplemail/smplmailclient.cxx | 3 |
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)); |