summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2010-03-30 20:02:35 +0000
committerStephen D. Huston <shuston@apache.org>2010-03-30 20:02:35 +0000
commite87e7af34a950629ccdbfefda73789b23ea9c0ff (patch)
tree3171a63324f0fdb2ba2f96ed3e29dedf927be8a2 /cpp/src
parent03bc83e5b05972b95d4001363dbef140aa02bc4b (diff)
downloadqpid-python-e87e7af34a950629ccdbfefda73789b23ea9c0ff.tar.gz
Rename Duration::INFINITE to Duration::FOREVER; resolves QPID-2475.
Added missing QPID_CLIENT_EXTERN where needed in Duration class to build on Windows. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@929240 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/messaging/Duration.cpp2
-rw-r--r--cpp/src/tests/qpid_recv.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/messaging/Duration.cpp b/cpp/src/qpid/messaging/Duration.cpp
index c415b70fbe..a2c443c746 100644
--- a/cpp/src/qpid/messaging/Duration.cpp
+++ b/cpp/src/qpid/messaging/Duration.cpp
@@ -37,7 +37,7 @@ Duration operator*(uint64_t multiplier, const Duration& duration)
return Duration(duration.getMilliseconds() * multiplier);
}
-const Duration Duration::INFINITE(std::numeric_limits<uint64_t>::max());
+const Duration Duration::FOREVER(std::numeric_limits<uint64_t>::max());
const Duration Duration::IMMEDIATE(0);
const Duration Duration::SECOND(1000);
const Duration Duration::MINUTE(SECOND * 60);
diff --git a/cpp/src/tests/qpid_recv.cpp b/cpp/src/tests/qpid_recv.cpp
index 6e384e9672..0a268ad6cf 100644
--- a/cpp/src/tests/qpid_recv.cpp
+++ b/cpp/src/tests/qpid_recv.cpp
@@ -96,7 +96,7 @@ struct Options : public qpid::Options
Duration getTimeout()
{
- if (forever) return Duration::INFINITE;
+ if (forever) return Duration::FOREVER;
else return Duration::SECOND*timeout;
}