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 | 1332f617da94bdb8465a35a5c41c5ee8d5e64961 (patch) | |
| tree | 9e85de5231f10c9f11052e9437da2e8b51d48d1f /cpp/examples/messaging/OptionParser.cpp | |
| parent | 1e28f559ccc92efcb7a312b4809892929fc1be6d (diff) | |
| download | qpid-python-1332f617da94bdb8465a35a5c41c5ee8d5e64961.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/messaging/OptionParser.cpp')
| -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) |
