Fix compilation with Visual Studio 2013.

Refs #4987
This commit is contained in:
Gunnar Beutner 2013-11-01 00:13:30 +01:00
parent 7d501e0a20
commit fcc96cfe8f
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ boost::signals2::signal<void (const Endpoint::Ptr&, const Dictionary::Ptr&)> End
*/ */
bool Endpoint::IsConnected(void) const bool Endpoint::IsConnected(void) const
{ {
return GetClient(); return GetClient() != NULL;
} }
Stream::Ptr Endpoint::GetClient(void) const Stream::Ptr Endpoint::GetClient(void) const

View File

@ -97,7 +97,7 @@ public:
if (!IsObject()) if (!IsObject())
return false; 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); static Value FromJson(cJSON *json);

View File

@ -125,7 +125,7 @@ void Service::UpdateNextCheck(void)
bool Service::HasBeenChecked(void) const bool Service::HasBeenChecked(void) const
{ {
return GetLastCheckResult(); return GetLastCheckResult() != NULL;
} }
double Service::GetLastCheck(void) const double Service::GetLastCheck(void) const