diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2013-03-06 20:24:23 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2013-03-06 20:24:23 +0000 |
| commit | 3399b1e05ab462c6bb1c22dd51f1ec67094f214f (patch) | |
| tree | 76ed4167b6da41eb742bb6a1a5f39fd2e91c65bd /qpid/cpp/src/tests | |
| parent | cac292ae432534fd92a31a0a7f2a85d348fbdcfb (diff) | |
| download | qpid-python-3399b1e05ab462c6bb1c22dd51f1ec67094f214f.tar.gz | |
QPID-4558: Selectors for C++ broker
- Changed unit test code that relied on non C++03 feature
Windows compiler spotted this problem.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1453536 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests')
| -rw-r--r-- | qpid/cpp/src/tests/Selector.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/qpid/cpp/src/tests/Selector.cpp b/qpid/cpp/src/tests/Selector.cpp index 932653e11c..1c15abf509 100644 --- a/qpid/cpp/src/tests/Selector.cpp +++ b/qpid/cpp/src/tests/Selector.cpp @@ -185,16 +185,12 @@ QPID_AUTO_TEST_CASE(parseStringFail) } class TestSelectorEnv : public qpid::broker::SelectorEnv { - map<string, qb::Value> values; + mutable map<string, qb::Value> values; boost::ptr_vector<string> strings; static const qb::Value EMPTY; - bool present(const string& v) const { - return values.find(v)!=values.end(); - } - const qb::Value& value(const string& v) const { - const qb::Value& r = present(v) ? values.at(v) : EMPTY; + const qb::Value& r = values.find(v)!=values.end() ? values[v] : EMPTY; return r; } |
