summaryrefslogtreecommitdiff
path: root/unotools/source
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source')
-rw-r--r--unotools/source/ucbhelper/xtempfile.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/unotools/source/ucbhelper/xtempfile.cxx b/unotools/source/ucbhelper/xtempfile.cxx
index 8bfe8b14a009..a8e0771cbea9 100644
--- a/unotools/source/ucbhelper/xtempfile.cxx
+++ b/unotools/source/ucbhelper/xtempfile.cxx
@@ -223,9 +223,7 @@ void SAL_CALL OTempFileService::closeInput( )
{
// stream will be deleted by TempFile implementation
mpStream = nullptr;
-
- if ( mpTempFile )
- mpTempFile.reset(nullptr);
+ mpTempFile.reset();
}
}
@@ -276,9 +274,7 @@ void SAL_CALL OTempFileService::closeOutput( )
{
// stream will be deleted by TempFile implementation
mpStream = nullptr;
-
- if ( mpTempFile )
- mpTempFile.reset(nullptr);
+ mpTempFile.reset();
}
}