diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-16 17:19:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-16 17:19:11 +0200 |
commit | 189c3a098e0ee5b64e2ab40c3980a2a654315468 (patch) | |
tree | d9a1147c3c0fe07ca75be0c4dcb6a4c5ca5b93e3 /sal/osl/unx/socket.cxx | |
parent | e85fcef1af0c96b0e8334bd7b6256e0b02810e43 (diff) |
Extend loplugin:comparisonwithconstant beyond integral types
Change-Id: Id3a8fd5d8b9975d3ae49af0648b39454310495fa
Diffstat (limited to 'sal/osl/unx/socket.cxx')
-rw-r--r-- | sal/osl/unx/socket.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/socket.cxx b/sal/osl/unx/socket.cxx index 15ce591bade9..6b24b0ab0143 100644 --- a/sal/osl/unx/socket.cxx +++ b/sal/osl/unx/socket.cxx @@ -1979,7 +1979,7 @@ static bool socket_poll ( int result; SAL_WARN_IF( !pSocket, "sal.osl", "undefined socket" ); - if (nullptr == pSocket) + if (pSocket == nullptr) return false; /* EINVAL */ pSocket->m_nLastError = 0; |