diff options
author | Stephen D. Huston <shuston@apache.org> | 2010-08-20 13:45:52 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2010-08-20 13:45:52 +0000 |
commit | 377a0c06c172d8f4df10a01b604bb67bb0d5e80d (patch) | |
tree | 37500cc491afdae9aad6ee78119ee03636057be2 /cpp/examples/messaging | |
parent | 145087188c7bd24175cbddbe1156433a4b498abc (diff) | |
download | qpid-python-377a0c06c172d8f4df10a01b604bb67bb0d5e80d.tar.gz |
Make the count check a bit clearer and remove extraneous blank lines at end of file.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@987504 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/messaging')
-rw-r--r-- | cpp/examples/messaging/drain.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/examples/messaging/drain.cpp b/cpp/examples/messaging/drain.cpp index 4901fb303f..5c938e9742 100644 --- a/cpp/examples/messaging/drain.cpp +++ b/cpp/examples/messaging/drain.cpp @@ -102,7 +102,7 @@ int main(int argc, char** argv) } std::cout << "')" << std::endl; session.acknowledge(); - if (count && ++i == count) + if (count && (++i == count)) break; } receiver.close(); @@ -116,5 +116,3 @@ int main(int argc, char** argv) } return 1; } - - |