Kaydet (Commit) 01c71fba authored tarafından Mike Kaganski's avatar Mike Kaganski

Don't return local variable address

Oversight in 2f061dad

Change-Id: I4cd4fcab7f5fa87f49ecc193a3f481fb9ac33932
Reviewed-on: https://gerrit.libreoffice.org/50857Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst a790ee54
......@@ -170,7 +170,7 @@ namespace {
// senddoc process lifetime. So we use base temppath for the attachments,
// and let the senddoc to do the cleanup if it was started successfully.
// This function works like Desktop::CreateTemporaryDirectory()
OUString&& InitBaseTempDirURL()
OUString InitBaseTempDirURL()
{
// No need to intercept an exception here, since
// Desktop::CreateTemporaryDirectory() has ensured that path manager is available
......@@ -183,7 +183,7 @@ OUString&& InitBaseTempDirURL()
if (aRetURL.endsWith("/"))
aRetURL = aRetURL.copy(0, aRetURL.getLength() - 1);
return std::move(aRetURL);
return aRetURL;
}
const OUString& GetBaseTempDirURL()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment