diff options
author | Gonzalo Tornaría <tornaria@gmail.com> | 2021-06-05 19:27:13 +0300 |
---|---|---|
committer | Michael Stingl <214010+michaelstingl@users.noreply.github.com> | 2021-06-07 17:51:17 +0300 |
commit | ff43c9394b45dd78106069ba89ae92f25abba158 (patch) | |
tree | a6621a48870cd34878a817092c8ed2d35e91f972 /src | |
parent | fe113b75ce6a69dc876a9fdfd1eebac4ddcbd626 (diff) |
Fix use of deleted function
Compilation fails due to implicit cast to QChar
Compilation on void linux (qt 5.15.3+20210429) fails with
csync_exclude.cpp:489:34: error: use of deleted function 'QCharRef& QCharRef::operator=(char)'
Diffstat (limited to 'src')
-rw-r--r-- | src/csync/csync_exclude.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/csync/csync_exclude.cpp b/src/csync/csync_exclude.cpp index 586035346..c5c7bbccf 100644 --- a/src/csync/csync_exclude.cpp +++ b/src/csync/csync_exclude.cpp @@ -488,7 +488,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; |