X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=test%2Flivestatus.cpp;h=bb74ffc303812e6344be49c476d4668504d7214b;hb=c48da4c2801da250938b07d440336bf67c70b795;hp=11f45c23cf93d8866f9c04838834d584fac19961;hpb=5563665b7d6e762272d5ac502256d51a33083801;p=icinga2 diff --git a/test/livestatus.cpp b/test/livestatus.cpp index 11f45c23c..bb74ffc30 100644 --- a/test/livestatus.cpp +++ b/test/livestatus.cpp @@ -67,10 +67,10 @@ BOOST_AUTO_TEST_CASE(hosts) BOOST_TEST_MESSAGE( "Querying Livestatus..."); std::vector lines; - lines.push_back("GET hosts"); - lines.push_back("Columns: host_name address check_command"); - lines.push_back("OutputFormat: json"); - lines.push_back("\n"); + lines.emplace_back("GET hosts"); + lines.emplace_back("Columns: host_name address check_command"); + lines.emplace_back("OutputFormat: json"); + lines.emplace_back("\n"); /* use our query helper */ String output = LivestatusQueryHelper(lines); @@ -97,10 +97,10 @@ BOOST_AUTO_TEST_CASE(services) BOOST_TEST_MESSAGE( "Querying Livestatus..."); std::vector lines; - lines.push_back("GET services"); - lines.push_back("Columns: host_name service_description check_command notes"); - lines.push_back("OutputFormat: json"); - lines.push_back("\n"); + lines.emplace_back("GET services"); + lines.emplace_back("Columns: host_name service_description check_command notes"); + lines.emplace_back("OutputFormat: json"); + lines.emplace_back("\n"); /* use our query helper */ String output = LivestatusQueryHelper(lines);