Merge branch 'feature/vs2013-4987' into next

Fixes #4987
This commit is contained in:
Gunnar Beutner 2013-11-01 00:14:18 +01:00
commit b896ac1693
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
{
return GetClient();
return GetClient() != NULL;
}
Stream::Ptr Endpoint::GetClient(void) const

View File

@ -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);

View File

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