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/resuming_receiver.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/resuming_receiver.cpp')
| -rw-r--r-- | cpp/src/tests/resuming_receiver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/tests/resuming_receiver.cpp b/cpp/src/tests/resuming_receiver.cpp index abd62f003e..2e22a7c572 100644 --- a/cpp/src/tests/resuming_receiver.cpp +++ b/cpp/src/tests/resuming_receiver.cpp @@ -73,6 +73,7 @@ Listener::Listener ( int freq, int verbosity, char const * name ) queueName ( name ) {} +const std::string SN("sn"); void Listener::received(Message & message) { @@ -108,7 +109,7 @@ void Listener::received(Message & message) << endl; } } else { - uint sn = message.getHeaders().getAsInt("sn"); + uint sn = message.getHeaders().getAsInt(SN); if (lastSn < sn) { if (sn - lastSn > 1) { cerr << "Error: gap in sequence between " << lastSn << " and " << sn << endl; |
