mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Fix build with Clang on Windows
This commit is contained in:
@@ -358,7 +358,7 @@ namespace BlackMisc
|
||||
QFileInfoList result = dir.entryInfoList(nameFilters, QDir::Files);
|
||||
if (predicate)
|
||||
{
|
||||
result.erase(std::remove_if(result.begin(), result.end(), std::not1(predicate)), result.end());
|
||||
result.erase(std::remove_if(result.begin(), result.end(), [ = ](const auto &f) { return !predicate(f); }), result.end());
|
||||
}
|
||||
if (recursive)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user