forked from qt-creator/qt-creator
Sqlite: Add additional Utf8String::operator==.
There was operator==(const Utf8String &, const char *), but not the counterpart with the argument types switched. Change-Id: Ie9ef5c21da0c39881ecad7ea080b87eefe6c4d02 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -227,6 +227,11 @@ bool operator==(const Utf8String &first, const char *second)
|
||||
return first.byteArray == second;
|
||||
}
|
||||
|
||||
bool operator==(const char *first, const Utf8String &second)
|
||||
{
|
||||
return second == first;
|
||||
}
|
||||
|
||||
bool operator==(const Utf8String &first, const QString &second)
|
||||
{
|
||||
return first.byteArray == second.toUtf8();
|
||||
|
||||
Reference in New Issue
Block a user