mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
fix: use proper type of string view
Signed-off-by: Matthieu Gallien <matthieu_gallien@yahoo.fr>
This commit is contained in:
parent
0ccba7edfb
commit
5f57734e87
@ -296,9 +296,10 @@ void ExcludedFiles::loadExcludeFilePatterns(const QString &basePath, QFile &file
|
||||
}
|
||||
if (line.isEmpty() || line.startsWith('#'))
|
||||
continue;
|
||||
QString patternStr = QString::fromUtf8(line);
|
||||
if (QStringView{patternStr}.trimmed() == QLatin1String("*"))
|
||||
const auto patternStr = QString::fromUtf8(line);
|
||||
if (QStringView{patternStr}.trimmed() == QLatin1StringView("*")) {
|
||||
continue;
|
||||
}
|
||||
csync_exclude_expand_escapes(line);
|
||||
patternStr = QString::fromUtf8(line);
|
||||
patterns.append(patternStr);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user