diff options
author | Robert Adam <dev@robert-adam.de> | 2022-03-31 17:37:16 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2022-03-31 19:21:52 +0300 |
commit | 75d42184466d1e307fcd1cb3057f519ea2358a22 (patch) | |
tree | db816066b11c9471febfe9e0401d867fb5fefe35 /src | |
parent | a326494098533c69400792656046165325d80091 (diff) |
BUILD(client): Use different compare operator
Apparently the compare operator (operator==) between QCharRef and
QString is not present in older versions of Qt. We can simply avoid
using it, by making sure to only match a single char against another
char instead of matching a string against a char.
Diffstat (limited to 'src')
-rw-r--r-- | src/mumble/Markdown.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mumble/Markdown.cpp b/src/mumble/Markdown.cpp index 2b251a9fb..444af8f4d 100644 --- a/src/mumble/Markdown.cpp +++ b/src/mumble/Markdown.cpp @@ -344,7 +344,7 @@ void escapeCharacter(QString &str, int &offset) { tmp = tmp.toHtmlEscaped(); - if (tmp.size() == 1 && tmp == str[offset]) { + if (tmp.size() == 1 && tmp[0] == str[offset]) { // Nothing to escape return; } |