diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-01-20 15:23:06 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-01-21 10:23:44 +0100 |
commit | 4a25fb867f7cc0a0fc21c4079c84fadec6647ad1 (patch) | |
tree | 04dd28ed5dae7b077ae7d097e078ac2b123a394c /unotools | |
parent | fa8c85fa90e9565a357b247a69f930098d11ff84 (diff) |
Make TempFile destructor remove temp directory recursively
Change-Id: Idcfa93ffe86112477ad81bcbf74b8e5b858423f2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87080
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/ucbhelper/tempfile.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx index b168957055ce..08a10309f646 100644 --- a/unotools/source/ucbhelper/tempfile.cxx +++ b/unotools/source/ucbhelper/tempfile.cxx @@ -29,6 +29,7 @@ #include <osl/file.hxx> #include <tools/time.hxx> #include <tools/debug.hxx> +#include <comphelper/DirectoryHelper.hxx> #ifdef UNX #include <unistd.h> @@ -388,8 +389,7 @@ TempFile::~TempFile() { if ( bIsDirectory ) { - // at the moment no recursiv algorithm present - Directory::remove( aName ); + comphelper::DirectoryHelper::deleteDirRecursively(aName); } else { |