BOOST_TEST_MESSAGE( "Querying Livestatus...");
std::vector<String> 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);
BOOST_TEST_MESSAGE( "Querying Livestatus...");
std::vector<String> 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);