diff options
| author | Alan Conway <aconway@apache.org> | 2010-04-21 14:48:58 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-04-21 14:48:58 +0000 |
| commit | c0d39fa7f5075054e598e61bbea140d08648c40d (patch) | |
| tree | 45098bd3bbfdd83e88131426c77437c8613fd8d4 /qpid/cpp/src/tests/receiver.cpp | |
| parent | e9c27048f9538d7484f9537e43f357df5f20b4e1 (diff) | |
| download | qpid-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/receiver.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/receiver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/receiver.cpp b/qpid/cpp/src/tests/receiver.cpp index e01954e31a..f1b462d6e4 100644 --- a/qpid/cpp/src/tests/receiver.cpp +++ b/qpid/cpp/src/tests/receiver.cpp @@ -61,6 +61,7 @@ struct Args : public qpid::TestOptions }; const string EOS("eos"); +const string SN("sn"); class Receiver : public MessageListener, public FailoverManager::Command { @@ -99,7 +100,7 @@ void Receiver::received(Message& message) bool Receiver::isDuplicate(Message& message) { - uint sn = message.getHeaders().getAsInt("sn"); + uint sn = message.getHeaders().getAsInt(SN); if (lastSn < sn) { lastSn = sn; return false; |
