From 2a71aa199010c48608f6d63794f52ad2e7afede5 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 3 Mar 2010 17:06:44 +0000 Subject: QPID-2402 & QPID-2406: Documented the units for the ttl property of Message. Eliminated use of qpid::sys::Duration from API. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@918575 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/examples/messaging/drain.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cpp/examples/messaging') diff --git a/cpp/examples/messaging/drain.cpp b/cpp/examples/messaging/drain.cpp index 21c7df7388..bd18fd3884 100644 --- a/cpp/examples/messaging/drain.cpp +++ b/cpp/examples/messaging/drain.cpp @@ -28,14 +28,10 @@ #include #include #include -#include #include using namespace qpid::messaging; -using qpid::sys::Duration; -using qpid::sys::TIME_INFINITE; -using qpid::sys::TIME_SEC; struct Options : public qpid::Options { @@ -67,8 +63,8 @@ struct Options : public qpid::Options Duration getTimeout() { - if (forever) return TIME_INFINITE; - else return timeout*TIME_SEC; + if (forever) return INFINITE_DURATION; + else return timeout*DURATION_SEC; } bool parse(int argc, char** argv) -- cgit v1.2.1