Skip to content

Commit 5798230

Browse files
committed
Replace std::remove_if with simpler std::remove
1 parent c1d8f31 commit 5798230

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Introspection.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,7 @@ std::optional<std::vector<std::shared_ptr<object::Type>>> Type::getPossibleTypes
175175
: std::shared_ptr<object::Type> {};
176176
});
177177

178-
result->erase(std::remove_if(result->begin(),
179-
result->end(),
180-
[](const auto& entry) noexcept {
181-
return entry == nullptr;
182-
}),
178+
result->erase(std::remove(result->begin(), result->end(), std::shared_ptr<object::Type> {}),
183179
result->cend());
184180

185181
return result;

0 commit comments

Comments
 (0)