summaryrefslogtreecommitdiff
path: root/unotools
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 /unotools
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 'unotools')
-rw-r--r--unotools/source/ucbhelper/tempfile.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx
index 9e582658bd89..83c2effa919e 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -468,6 +468,12 @@ OUString TempFile::SetTempNameBaseDirectory( const OUString &rBaseName )
return aTmp;
}
+
+OUString TempFile::GetTempNameBaseDirectory()
+{
+ return ConstructTempDir_Impl(nullptr);
+}
+
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */