summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-09-17 15:22:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-18 12:00:51 +0200
commit898ba5beb4db4ff30cc4409da829c3d79907f37e (patch)
tree9128a742c7f427e8fdc8fa8a3a5f4d4a31fc8bae /framework
parentca3d526a24390df6158bf233fa63e19f5f4b1f4b (diff)
use more string_view in utl::TempFile
Change-Id: I151c66479053b9b5b7699a4938a622b4320aeaa0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140104 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/autorecovery.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index 3ecc95ced885..a17e9464e715 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -3485,10 +3485,7 @@ void AutoRecovery::implts_generateNewTempURL(const OUString& sBack
// TODO: Must we strip some illegal signs - if we use the title?
- OUString sName(sUniqueName.makeStringAndClear());
- OUString sExtension(rInfo.Extension);
- OUString sPath(sBackupPath);
- ::utl::TempFile aTempFile(sName, true, &sExtension, &sPath, true);
+ ::utl::TempFile aTempFile(sUniqueName, true, rInfo.Extension, &sBackupPath, true);
rInfo.NewTempURL = aTempFile.GetURL();
}