From fcf93adf1e766fbc69b05e598ee0aeb9b36b1c70 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Mon, 18 Jun 2018 21:48:07 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-emplace=20pa?= =?UTF-8?q?ss.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reduces the boilerplate required to add a new element to a container. --- src/conditions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conditions.cpp') diff --git a/src/conditions.cpp b/src/conditions.cpp index 4188b75e1..25084a9ac 100644 --- a/src/conditions.cpp +++ b/src/conditions.cpp @@ -139,7 +139,7 @@ static std::vector splitByWhitespace(gchar const *value) { gchar *part = g_strstrip(str); if ( 0 == *part ) continue; - parts.push_back(part); + parts.emplace_back(part); } g_strfreev(strlist); return parts; -- cgit v1.2.3