summaryrefslogtreecommitdiff
path: root/src/mongo/client/connpool.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2014-04-16 13:27:04 -0400
committerMathias Stearn <mathias@10gen.com>2014-05-01 13:00:19 -0400
commit0ee4735ab8fb718b40e2049d014e17736035ba46 (patch)
tree75360fbe55731b6f638f6ba680677a5b0c47cf4b /src/mongo/client/connpool.h
parent35562387e6d3e23245529589e264be3551f2dd0b (diff)
downloadmongo-0ee4735ab8fb718b40e2049d014e17736035ba46.tar.gz
SERVER-13617 don't compare pointers to 0 using >
GCC with -Wextra gives the following message in these cases: ordered comparison of pointer with integer zero
Diffstat (limited to 'src/mongo/client/connpool.h')
-rw-r--r--src/mongo/client/connpool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/connpool.h b/src/mongo/client/connpool.h
index 9bf4583065f..b4069f5a5ea 100644
--- a/src/mongo/client/connpool.h
+++ b/src/mongo/client/connpool.h
@@ -323,7 +323,7 @@ namespace mongo {
return _conn;
}
- bool ok() const { return _conn > 0; }
+ bool ok() const { return _conn != NULL; }
string getHost() const { return _host; }