summaryrefslogtreecommitdiff
path: root/cpp/examples/messaging
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-03-29 18:15:42 +0000
committerGordon Sim <gsim@apache.org>2010-03-29 18:15:42 +0000
commitadfea171e68298b9b0ced9fe54c2232b963e077e (patch)
treecc51faebbf79d6b1ac84360e2ad6526939912563 /cpp/examples/messaging
parentc2b13417889ca05c880736e49bba91fb1ba4bd5d (diff)
downloadqpid-python-adfea171e68298b9b0ced9fe54c2232b963e077e.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/qpid@928855 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/examples/messaging')
-rw-r--r--cpp/examples/messaging/drain.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/examples/messaging/drain.cpp b/cpp/examples/messaging/drain.cpp
index 807b361aaf..05e6f23642 100644
--- a/cpp/examples/messaging/drain.cpp
+++ b/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)