diff options
| author | Gordon Sim <gsim@apache.org> | 2010-03-03 17:06:44 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-03-03 17:06:44 +0000 |
| commit | a68130eb13c7082e23f235bf2c779cf5e278771a (patch) | |
| tree | 5ba5e02234017f41a969945ac7d94232b4deacb2 /qpid/cpp/examples/messaging | |
| parent | d98a30613db0a1aad03706b54c66d73fe21df876 (diff) | |
| download | qpid-python-a68130eb13c7082e23f235bf2c779cf5e278771a.tar.gz | |
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@918575 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples/messaging')
| -rw-r--r-- | qpid/cpp/examples/messaging/drain.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/qpid/cpp/examples/messaging/drain.cpp b/qpid/cpp/examples/messaging/drain.cpp index 21c7df7388..bd18fd3884 100644 --- a/qpid/cpp/examples/messaging/drain.cpp +++ b/qpid/cpp/examples/messaging/drain.cpp @@ -28,14 +28,10 @@ #include <qpid/Options.h> #include <qpid/log/Logger.h> #include <qpid/log/Options.h> -#include <qpid/sys/Time.h> #include <iostream> 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) |
