diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-18 19:48:07 +0000 |
|---|---|---|
| committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-18 19:48:07 +0000 |
| commit | fcf93adf1e766fbc69b05e598ee0aeb9b36b1c70 (patch) | |
| tree | 724178e38d88307e7b4129479006dc2ec122c410 /src/conditions.cpp | |
| parent | Run clang-tidy’s modernize-use-noexcept pass. (diff) | |
| download | inkscape-fcf93adf1e766fbc69b05e598ee0aeb9b36b1c70.tar.gz inkscape-fcf93adf1e766fbc69b05e598ee0aeb9b36b1c70.zip | |
Run clang-tidy’s modernize-use-emplace pass.
This reduces the boilerplate required to add a new element to a
container.
Diffstat (limited to 'src/conditions.cpp')
| -rw-r--r-- | src/conditions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Glib::ustring> 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; |
