You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2023/06/08 19:46:41 UTC

[qpid-proton] 01/02: NO-JIRA: Use a bit more C++11 in C++ connection driver test

This is an automated email from the ASF dual-hosted git repository.

astitcher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git

commit 6d83cf2cecdb2e1378533caa142eb171dd9bed98
Author: Andrew Stitcher <as...@apache.org>
AuthorDate: Mon May 1 23:00:58 2023 -0400

    NO-JIRA: Use a bit more C++11 in C++ connection driver test
---
 cpp/src/connection_driver_test.cpp | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/cpp/src/connection_driver_test.cpp b/cpp/src/connection_driver_test.cpp
index b56cd07e1..608e48e8e 100644
--- a/cpp/src/connection_driver_test.cpp
+++ b/cpp/src/connection_driver_test.cpp
@@ -440,15 +440,11 @@ void test_link_capability_filter() {
     driver_pair d(ha, hb);
 
     // Capabilities and filters
-    std::vector<proton::symbol> caps;
-    caps.push_back("foo");
-    caps.push_back("bar");
+    std::vector<proton::symbol> caps = {"foo", "bar"};
 
     d.a.connection().open_sender("x", sender_options().target(target_options().capabilities(caps)));
 
-    source::filter_map f;
-    f.put("1", "11");
-    f.put("2", "22");
+    source::filter_map f = {{"1", "11"}, {"2", "22"}};
     d.a.connection().open_receiver("y", receiver_options().source(source_options().filters(f).capabilities(caps)));
     while (ha.link_count()+hb.link_count() < 4) d.process();
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org