diff options
| author | Gordon Sim <gsim@apache.org> | 2010-03-29 18:15:42 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-03-29 18:15:42 +0000 |
| commit | 3d990371a345d1760cebd7dc0e47365034cfe2d4 (patch) | |
| tree | d89e8329555cec0f73e832ff0aa89f27287811c8 /qpid/cpp/examples | |
| parent | 7e92a02008a01cc824bc34dd7296791b4d8912e5 (diff) | |
| download | qpid-python-3d990371a345d1760cebd7dc0e47365034cfe2d4.tar.gz | |
QPID-2406: a more explicit solution for durations in the messaging api
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@928855 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/examples')
| -rw-r--r-- | qpid/cpp/examples/messaging/drain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/examples/messaging/drain.cpp b/qpid/cpp/examples/messaging/drain.cpp index 807b361aaf..05e6f23642 100644 --- a/qpid/cpp/examples/messaging/drain.cpp +++ b/qpid/cpp/examples/messaging/drain.cpp @@ -64,8 +64,8 @@ struct Options : public qpid::Options Duration getTimeout() { - if (forever) return INFINITE_DURATION; - else return timeout*DURATION_SEC; + if (forever) return Duration::INFINITE; + else return timeout*Duration::SECOND; } bool parse(int argc, char** argv) |
