mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Use std::as_const (C++17 feature)
This commit is contained in:
@@ -286,7 +286,7 @@ namespace BlackMisc
|
||||
|
||||
QString last;
|
||||
QStringList result;
|
||||
for (const QString &path : as_const(dirs))
|
||||
for (const QString &path : std::as_const(dirs))
|
||||
{
|
||||
if (path.isEmpty()) { continue; }
|
||||
if (last.isEmpty() || !path.startsWith(last, cs))
|
||||
|
||||
Reference in New Issue
Block a user