Kaydet (Commit) 8abc80de authored tarafından Mike Kaganski's avatar Mike Kaganski Kaydeden (comit) Miklos Vajna

SW_DEBUG_WRITERFILTER: Use configured TEMP path instead of hardcoded /tmp

This allows using the logger on Windows with default settings
(not having TAGLOGGERTMP variable set).

Change-Id: Ic2be0ae90b2278b8c605aaa9f16f71fa16e7fcfe
Reviewed-on: https://gerrit.libreoffice.org/59657
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 0073101e
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
#include "TagLogger.hxx" #include "TagLogger.hxx"
#include <ooxml/QNameToString.hxx> #include <ooxml/QNameToString.hxx>
#include <unordered_map> #include <unordered_map>
#ifdef DEBUG_WRITERFILTER
#include <unotools/pathoptions.hxx>
#endif
using namespace css; using namespace css;
...@@ -49,7 +52,7 @@ namespace writerfilter ...@@ -49,7 +52,7 @@ namespace writerfilter
if (temp != nullptr) if (temp != nullptr)
fileName += temp; fileName += temp;
else else
fileName += "/tmp"; fileName += SvtPathOptions().GetTempPath().toUtf8().getStr();
std::string sPrefix = filename; std::string sPrefix = filename;
size_t nLastSlash = sPrefix.find_last_of('/'); size_t nLastSlash = sPrefix.find_last_of('/');
......
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