diff options
Diffstat (limited to 'src/plugins/generator/keiluv/keiluvfilesgroupspropertygroup.cpp')
-rw-r--r-- | src/plugins/generator/keiluv/keiluvfilesgroupspropertygroup.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/generator/keiluv/keiluvfilesgroupspropertygroup.cpp b/src/plugins/generator/keiluv/keiluvfilesgroupspropertygroup.cpp index b062ebedc..79281a153 100644 --- a/src/plugins/generator/keiluv/keiluvfilesgroupspropertygroup.cpp +++ b/src/plugins/generator/keiluv/keiluvfilesgroupspropertygroup.cpp @@ -33,6 +33,7 @@ #include <generators/generatordata.h> +#include <tools/stlutils.h> #include <tools/stringconstants.h> namespace qbs { @@ -166,12 +167,10 @@ KeiluvFilesGroupsPropertyGroup::KeiluvFilesGroupsPropertyGroup( continue; auto sourceArtifacts = group.sourceArtifacts(); // Remove the linker script artifacts. - sourceArtifacts.erase(std::remove_if(sourceArtifacts.begin(), - sourceArtifacts.end(), - [](const auto &artifact){ + Internal::removeIf(sourceArtifacts, [](const auto &artifact){ const auto tags = artifact.fileTags(); return tags.contains(QLatin1String("linkerscript")); - }), sourceArtifacts.end()); + }); if (sourceArtifacts.isEmpty()) continue; |