summaryrefslogtreecommitdiff
path: root/ACE/ace/Event_Handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/Event_Handler.cpp')
-rw-r--r--ACE/ace/Event_Handler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ACE/ace/Event_Handler.cpp b/ACE/ace/Event_Handler.cpp
index 0a2bb21f52b..4b016b0b1bc 100644
--- a/ACE/ace/Event_Handler.cpp
+++ b/ACE/ace/Event_Handler.cpp
@@ -354,19 +354,19 @@ ACE_Event_Handler_var::reset (ACE_Event_Handler *p)
ACE_Event_Handler_var::operator bool() const
{
- return this->ptr_ == nullptr ? false : true;
+ return this->ptr_ != nullptr;
}
bool
ACE_Event_Handler_var::operator ==(std::nullptr_t) const
{
- return this->ptr_ == nullptr ? true : false;
+ return this->ptr_ == nullptr;
}
bool
ACE_Event_Handler_var::operator !=(std::nullptr_t) const
{
- return this->ptr_ == nullptr ? false : true;
+ return this->ptr_ != nullptr;
}