summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/Statistics.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-04-21 14:48:58 +0000
committerAlan Conway <aconway@apache.org>2010-04-21 14:48:58 +0000
commitc0d39fa7f5075054e598e61bbea140d08648c40d (patch)
tree45098bd3bbfdd83e88131426c77437c8613fd8d4 /qpid/cpp/src/tests/Statistics.cpp
parente9c27048f9538d7484f9537e43f357df5f20b4e1 (diff)
downloadqpid-python-c0d39fa7f5075054e598e61bbea140d08648c40d.tar.gz
Consistent use of string constants for message property keys in sender/receiver tests.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@936337 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/Statistics.cpp')
-rw-r--r--qpid/cpp/src/tests/Statistics.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/Statistics.cpp b/qpid/cpp/src/tests/Statistics.cpp
index c002bc6a6a..2452dc8be9 100644
--- a/qpid/cpp/src/tests/Statistics.cpp
+++ b/qpid/cpp/src/tests/Statistics.cpp
@@ -56,9 +56,11 @@ ThroughputAndLatency::ThroughputAndLatency() :
samples(0)
{}
+const std::string TS = "ts";
+
void ThroughputAndLatency::message(const messaging::Message& m) {
Throughput::message(m);
- types::Variant::Map::const_iterator i = m.getProperties().find("ts");
+ types::Variant::Map::const_iterator i = m.getProperties().find(TS);
if (i != m.getProperties().end()) {
++samples;
int64_t start(i->second.asInt64());