From: Matt Benjamin Date: Thu, 29 May 2014 14:48:18 +0000 (-0400) Subject: Convert ConnectionRef explicitly to bool. X-Git-Tag: v0.84~119^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=16ef1ed515cf4dcb20fcc2ed7b0870d15e07b6fa;p=ceph.git Convert ConnectionRef explicitly to bool. Signed-off-by: Matt Benjamin --- diff --git a/src/osd/Watch.cc b/src/osd/Watch.cc index 4ef4bd135983..4fdb12460200 100644 --- a/src/osd/Watch.cc +++ b/src/osd/Watch.cc @@ -281,7 +281,7 @@ Watch::~Watch() { assert(!conn); } -bool Watch::connected() { return conn; } +bool Watch::connected() { return !!conn; } Context *Watch::get_delayed_cb() {