From 80a5577c4cd0b607d7ab787bcf8660c659e5b176 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Wed, 6 Mar 2013 20:24:23 +0000 Subject: 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/qpid@1453536 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/Selector.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/tests/Selector.cpp b/cpp/src/tests/Selector.cpp index 932653e11c..1c15abf509 100644 --- a/cpp/src/tests/Selector.cpp +++ b/cpp/src/tests/Selector.cpp @@ -185,16 +185,12 @@ QPID_AUTO_TEST_CASE(parseStringFail) } class TestSelectorEnv : public qpid::broker::SelectorEnv { - map values; + mutable map values; boost::ptr_vector 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; } -- cgit v1.2.1