From 377a0c06c172d8f4df10a01b604bb67bb0d5e80d Mon Sep 17 00:00:00 2001 From: "Stephen D. Huston" Date: Fri, 20 Aug 2010 13:45:52 +0000 Subject: 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 --- cpp/examples/messaging/drain.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cpp/examples/messaging') 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; } - - -- cgit v1.2.1