summaryrefslogtreecommitdiff
path: root/unotools/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-27 08:55:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-28 11:13:21 +0100
commitde6f36cc2fb359332205ba836f8396a1cdbe44c2 (patch)
treea7b4dfcd77bffe4ca90c2f5763aa5ef9b20a5c39 /unotools/source
parent1d39c5aa7bd6419060ed10d9fbdc2a643000f363 (diff)
simplify reset(nullptr) -> reset()
Change-Id: Iec5e93d9c59dde44571376e46fb98ea854e16b6c Reviewed-on: https://gerrit.libreoffice.org/69784 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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();
}
}