Fix build with Qt 6

Change-Id: I67ffc389d7579ac98755ec99614ce9b3e4e07df5
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Eike Ziller
2021-02-25 13:29:24 +01:00
parent 91241d86de
commit dce690ab73
3 changed files with 16 additions and 7 deletions

View File

@@ -268,6 +268,13 @@ public:
return second == first;
}
friend bool operator!=(const Utf8String &first, const char *second)
{
return first.byteArray != second;
}
friend bool operator!=(const char *first, const Utf8String &second) { return second != first; }
friend bool operator==(const Utf8String &first, const QString &second)
{
return first.byteArray == second.toUtf8();