diff options
-rw-r--r-- | sfx2/source/appl/shutdowniconw32.cxx | 2 | ||||
-rw-r--r-- | shell/source/win32/simplemail/smplmailclient.cxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/appl/shutdowniconw32.cxx b/sfx2/source/appl/shutdowniconw32.cxx index b6fd1741a360..f5e836dfbc5a 100644 --- a/sfx2/source/appl/shutdowniconw32.cxx +++ b/sfx2/source/appl/shutdowniconw32.cxx @@ -149,7 +149,7 @@ static HMENU createSystrayMenu( ) // collect the URLs of the entries in the File/New menu ::std::set< OUString > aFileNewAppsAvailable; SvtDynamicMenuOptions aOpt; - Sequence < Sequence < PropertyValue > > aNewMenu = aOpt.GetMenu( EDynamicMenuType::NewMenu ); + Sequence < Sequence < PropertyValue > > const aNewMenu = aOpt.GetMenu( EDynamicMenuType::NewMenu ); const OUString sURLKey( "URL" ); for ( auto const & newMenuProp : aNewMenu ) 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)); |