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/resource-manager.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/resource-manager.cpp')
| -rw-r--r-- | src/resource-manager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resource-manager.cpp b/src/resource-manager.cpp index fb23ffef0..6a455a8cc 100644 --- a/src/resource-manager.cpp +++ b/src/resource-manager.cpp @@ -227,18 +227,18 @@ std::vector<Glib::ustring> ResourceManagerImpl::findBrokenLinks( SPDocument *doc if ( extractFilepath( href, uri ) ) { if ( Glib::path_is_absolute(uri) ) { if ( !Glib::file_test(uri, Glib::FILE_TEST_EXISTS) ) { - result.push_back(href); + result.emplace_back(href); uniques.insert(href); } } else { std::string combined = Glib::build_filename(doc->getBase(), uri); if ( !Glib::file_test(combined, Glib::FILE_TEST_EXISTS) ) { - result.push_back(href); + result.emplace_back(href); uniques.insert(href); } } } else if ( reconstructFilepath( href, uri ) ) { - result.push_back(href); + result.emplace_back(href); uniques.insert(href); } } |
