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 | 1a008057b08edf34f68b8b97ef886f2c1415aeba (patch) | |
| tree | 7ae41cc93a3b68a81cf433a9c8dff872fd3d736b /cpp/src/tests/qpid_receive.cpp | |
| parent | b7c74d4a77f802b5ec5b6177009f0a2937bde201 (diff) | |
| download | qpid-python-1a008057b08edf34f68b8b97ef886f2c1415aeba.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/qpid@936337 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/qpid_receive.cpp')
| -rw-r--r-- | cpp/src/tests/qpid_receive.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/tests/qpid_receive.cpp b/cpp/src/tests/qpid_receive.cpp index 4c0d8c74c2..53d1d7d1fe 100644 --- a/cpp/src/tests/qpid_receive.cpp +++ b/cpp/src/tests/qpid_receive.cpp @@ -138,6 +138,7 @@ struct Options : public qpid::Options }; const string EOS("eos"); +const string SN("sn"); class SequenceTracker { @@ -147,7 +148,7 @@ class SequenceTracker bool isDuplicate(Message& message) { - uint sn = message.getProperties()["sn"]; + uint sn = message.getProperties()[SN]; if (lastSn < sn) { lastSn = sn; return false; |
