diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2020-11-22 09:38:06 -0500 |
---|---|---|
committer | Ashod Nakashian <Ashod@users.noreply.github.com> | 2020-11-22 22:26:36 -0500 |
commit | 3724ab4e354a30148fde1c8fbc91e1ec8df215d9 (patch) | |
tree | b51211b34841d6a77f2744bf23a5c793960710e3 /kit/ChildSession.cpp | |
parent | typo in docker/README (diff) | |
download | online-3724ab4e354a30148fde1c8fbc91e1ec8df215d9.tar.gz online-3724ab4e354a30148fde1c8fbc91e1ec8df215d9.zip |
wsd: centralize temporary directory helpers in FileUtil
Change-Id: I9b55d0b8d4c55a68af4baa7e638627de6c73b64d
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
Diffstat (limited to 'kit/ChildSession.cpp')
-rw-r--r-- | kit/ChildSession.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kit/ChildSession.cpp b/kit/ChildSession.cpp index 97ef7ced7b..1b00f7bc99 100644 --- a/kit/ChildSession.cpp +++ b/kit/ChildSession.cpp @@ -1233,7 +1233,7 @@ bool ChildSession::insertFile(const char* /*buffer*/, int /*length*/, const Stri #else assert(type == "graphic"); auto binaryData = decodeBase64(data); - std::string tempFile = Util::createRandomTmpDir() + "/" + name; + const std::string tempFile = FileUtil::createRandomTmpDir() + '/' + name; std::ofstream fileStream; fileStream.open(tempFile); fileStream.write(reinterpret_cast<char*>(binaryData.data()), binaryData.size()); |