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 | b7dfc1a379178e746cee2519cd95a67bce0ae2d7 (patch) | |
tree | 9e85de5231f10c9f11052e9437da2e8b51d48d1f /cpp/examples | |
parent | b3e33e06051f2631af851549b4837d093b953f40 (diff) | |
download | qpid-python-b7dfc1a379178e746cee2519cd95a67bce0ae2d7.tar.gz |
Nix a compile warning on Windows about converting int to bool.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@955208 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples')
-rw-r--r-- | cpp/examples/messaging/OptionParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/examples/messaging/OptionParser.cpp b/cpp/examples/messaging/OptionParser.cpp index e06dcead9a..661d0a988a 100644 --- a/cpp/examples/messaging/OptionParser.cpp +++ b/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) |