From 3399b1e05ab462c6bb1c22dd51f1ec67094f214f 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@1453536 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/Selector.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'qpid/cpp/src/tests') 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 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