summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-11-01 08:34:50 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-11-01 12:19:13 +0100
commitf312256a93b282e041a45c9dfef836220f996432 (patch)
tree84060bb60a2af8cccc1fdd79137178fb217a25c5 /unotools
parent85a5233275ab83fe0d6b943b298695387d97accd (diff)
-Werror,-Wunused-variable (clang-cl)
Change-Id: I8887a8c151f628c65bb24e63b03893c7b27c0c3c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142088 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/ucbhelper/tempfile.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx
index efeb872b5d6d..2cf7a94ec5ed 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -422,7 +422,9 @@ void TempFileFast::CloseStream()
{
if (mxStream)
{
+#if !defined _WIN32
OUString aName = mxStream->GetFileName();
+#endif
mxStream.reset();
#ifdef _WIN32
// On Windows, the file is opened with FILE_FLAG_DELETE_ON_CLOSE, so it will delete as soon as the handle closes.