summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-08-27 10:30:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-08-27 15:07:48 +0200
commit3bed509302127f0bb82898b2637c4372aee796ef (patch)
treec3ab632082d2970a7df177a4ad9906eb2c117f3b /sw
parentfae4eb717427f542305d2978f5fa78cbf27eaafa (diff)
Use a direct way to get at the temp dir
...in code originally added with 2b2f1352c72280dd25ed3bef090a3c708ee4b964 "tdf#86087 Save relative links in DOCX", by introducing utl::TempFile::GetTempNameBaseDirectory Change-Id: Ic0e8b54896a3829c081255404ef92b96f1724a2a Reviewed-on: https://gerrit.libreoffice.org/78174 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmllinks.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmllinks.cxx b/sw/qa/extras/ooxmlexport/ooxmllinks.cxx
index 476c4fc5408d..6bfeb8cda870 100644
--- a/sw/qa/extras/ooxmlexport/ooxmllinks.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmllinks.cxx
@@ -47,12 +47,7 @@
: aOriginalURL.GetLastName(); \
\
/* Get temp path */ \
- OUString sTempDir = utl::TempFile::CreateTempName(); \
- INetURLObject aTempURL; \
- aTempURL.setFSysPath(sTempDir, FSysStyle::Detect); \
- /* remove file name */ \
- aTempURL.removeSegment(); \
- sTempDir = INetURLObject::GetScheme(aTempURL.GetProtocol()) + aTempURL.GetURLPath(); \
+ OUString sTempDir = utl::TempFile::GetTempNameBaseDirectory(); \
\
/* Create & apply new URL */ \
OUString sOriginalFileInTempDir = sTempDir + sFileName; \