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 | adfea171e68298b9b0ced9fe54c2232b963e077e (patch) | |
tree | cc51faebbf79d6b1ac84360e2ad6526939912563 /cpp/include/qpid/messaging/Session.h | |
parent | c2b13417889ca05c880736e49bba91fb1ba4bd5d (diff) | |
download | qpid-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/include/qpid/messaging/Session.h')
-rw-r--r-- | cpp/include/qpid/messaging/Session.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/include/qpid/messaging/Session.h b/cpp/include/qpid/messaging/Session.h index 032b678c5c..bc5aaed6ba 100644 --- a/cpp/include/qpid/messaging/Session.h +++ b/cpp/include/qpid/messaging/Session.h @@ -102,7 +102,7 @@ class Session : public qpid::messaging::Handle<SessionImpl> * which case the passed in receiver reference will be set to the * receiver for that message or false if no message was available. */ - QPID_CLIENT_EXTERN bool nextReceiver(Receiver&, Duration timeout=INFINITE_DURATION); + QPID_CLIENT_EXTERN bool nextReceiver(Receiver&, Duration timeout=Duration::INFINITE); /** * Returns the receiver for the next available message. If there * are no available messages at present the call will block for up @@ -111,7 +111,7 @@ class Session : public qpid::messaging::Handle<SessionImpl> *@exception Receiver::NoMessageAvailable if no message became available in * time. */ - QPID_CLIENT_EXTERN Receiver nextReceiver(Duration timeout=INFINITE_DURATION); + QPID_CLIENT_EXTERN Receiver nextReceiver(Duration timeout=Duration::INFINITE); /** * Create a new sender through which messages can be sent to the |