From adfea171e68298b9b0ced9fe54c2232b963e077e Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 29 Mar 2010 18:15:42 +0000 Subject: 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 --- cpp/examples/messaging/drain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/examples/messaging') 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) -- cgit v1.2.1