diff options
author | Stephen D. Huston <shuston@apache.org> | 2010-06-16 11:54:42 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2010-06-16 11:54:42 +0000 |
commit | 645c83f1e63b4cbfe4b6eb1471d9911063bc7ec5 (patch) | |
tree | 1939aea18b577e4ef6df92edbc59607c342d315c /qpid/cpp/examples/messaging/OptionParser.cpp | |
parent | 8821eb6192eee797417ad745d45e3dca9b005635 (diff) | |
download | qpid-python-645c83f1e63b4cbfe4b6eb1471d9911063bc7ec5.tar.gz |
Nix a compile warning on Windows about converting int to bool.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@955208 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/messaging/OptionParser.cpp')
-rw-r--r-- | qpid/cpp/examples/messaging/OptionParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/examples/messaging/OptionParser.cpp b/qpid/cpp/examples/messaging/OptionParser.cpp index e06dcead9a..661d0a988a 100644 --- a/qpid/cpp/examples/messaging/OptionParser.cpp +++ b/qpid/cpp/examples/messaging/OptionParser.cpp @@ -178,7 +178,7 @@ bool OptionMatch::operator()(Option* option) bool OptionMatch::isOption() { - return name.size(); + return name.size() > 0; } OptionParser::OptionParser(const std::string& s, const std::string& d) : summary(s), description(d), help(false) |