Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2022-03-31 17:37:16 +0300
committerRobert Adam <dev@robert-adam.de>2022-03-31 19:21:52 +0300
commit75d42184466d1e307fcd1cb3057f519ea2358a22 (patch)
treedb816066b11c9471febfe9e0401d867fb5fefe35 /src
parenta326494098533c69400792656046165325d80091 (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.cpp2
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;
}