mirror of https://github.com/Icinga/icinga2.git
commit
b896ac1693
|
@ -41,7 +41,7 @@ boost::signals2::signal<void (const Endpoint::Ptr&, const Dictionary::Ptr&)> End
|
|||
*/
|
||||
bool Endpoint::IsConnected(void) const
|
||||
{
|
||||
return GetClient();
|
||||
return GetClient() != NULL;
|
||||
}
|
||||
|
||||
Stream::Ptr Endpoint::GetClient(void) const
|
||||
|
|
|
@ -97,7 +97,7 @@ public:
|
|||
if (!IsObject())
|
||||
return false;
|
||||
|
||||
return (dynamic_pointer_cast<T>(boost::get<Object::Ptr>(m_Value)));
|
||||
return (dynamic_pointer_cast<T>(boost::get<Object::Ptr>(m_Value)) != NULL);
|
||||
}
|
||||
|
||||
static Value FromJson(cJSON *json);
|
||||
|
|
|
@ -125,7 +125,7 @@ void Service::UpdateNextCheck(void)
|
|||
|
||||
bool Service::HasBeenChecked(void) const
|
||||
{
|
||||
return GetLastCheckResult();
|
||||
return GetLastCheckResult() != NULL;
|
||||
}
|
||||
|
||||
double Service::GetLastCheck(void) const
|
||||
|
|
Loading…
Reference in New Issue