summaryrefslogtreecommitdiff
path: root/sal/osl/unx/tempfile.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-05-16 17:19:11 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-05-16 17:19:11 +0200
commit189c3a098e0ee5b64e2ab40c3980a2a654315468 (patch)
treed9a1147c3c0fe07ca75be0c4dcb6a4c5ca5b93e3 /sal/osl/unx/tempfile.cxx
parente85fcef1af0c96b0e8334bd7b6256e0b02810e43 (diff)
Extend loplugin:comparisonwithconstant beyond integral types
Change-Id: Id3a8fd5d8b9975d3ae49af0648b39454310495fa
Diffstat (limited to 'sal/osl/unx/tempfile.cxx')
-rw-r--r--sal/osl/unx/tempfile.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/tempfile.cxx b/sal/osl/unx/tempfile.cxx
index fdf85e6014f9..4894fa43154a 100644
--- a/sal/osl/unx/tempfile.cxx
+++ b/sal/osl/unx/tempfile.cxx
@@ -150,7 +150,7 @@ static oslFileError osl_setup_base_directory_impl_(
OSL_PRECOND(((nullptr != pHandle) || (nullptr != ppustrTempFileURL)), "Invalid parameter!");
- if ((nullptr == pHandle) && (nullptr == ppustrTempFileURL))
+ if ((pHandle == nullptr) && (ppustrTempFileURL == nullptr))
{
osl_error = osl_File_E_INVAL;
}
@@ -159,7 +159,7 @@ static oslFileError osl_setup_base_directory_impl_(
osl_error = osl_setup_base_directory_impl_(
pustrDirectoryURL, ppustr_base_dir);
- *b_delete_on_close = (nullptr == ppustrTempFileURL);
+ *b_delete_on_close = (ppustrTempFileURL == nullptr);
}
return osl_error;