зеркало из https://github.com/nextcloud/desktop.git
Fix build against Qt 5.15.3
Use QLatin1Char to prevent build error due to stricter QT_NO_CAST_FROM_ASCII Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
This commit is contained in:
Родитель
398101ae3d
Коммит
ab064c92b6
|
@ -588,7 +588,7 @@ QString ExcludedFiles::convertToRegexpSyntax(QString exclude, bool wildcardsMatc
|
|||
// Translate [! to [^
|
||||
QString bracketExpr = exclude.mid(i, j - i + 1);
|
||||
if (bracketExpr.startsWith(QLatin1String("[!")))
|
||||
bracketExpr[1] = '^';
|
||||
bracketExpr[1] = QLatin1Char('^');
|
||||
regex.append(bracketExpr);
|
||||
i = j;
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче