forked from qt-creator/qt-creator
Sqlite: Add equal operator for QString to Utf8String
Change-Id: I60993e2a140445468b6fe98604cb19329dc35b1c Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -222,6 +222,11 @@ bool operator==(const Utf8String &first, const char *second)
|
||||
return first.byteArray == second;
|
||||
}
|
||||
|
||||
bool operator==(const Utf8String &first, const QString &second)
|
||||
{
|
||||
return first.byteArray == second.toUtf8();
|
||||
}
|
||||
|
||||
bool operator<(const Utf8String &first, const Utf8String &second)
|
||||
{
|
||||
if (first.byteSize() == second.byteSize())
|
||||
|
||||
Reference in New Issue
Block a user