20 lines
940 B
Text
20 lines
940 B
Text
Index: autotests/KDbTestUtils.cpp
|
|
--- autotests/KDbTestUtils.cpp.orig
|
|
+++ autotests/KDbTestUtils.cpp
|
|
@@ -110,6 +110,16 @@ KDBTESTUTILS_EXPORT bool qCompare(const QStringList &v
|
|
: compare_helper(false, "Compared values are not the same", toString(val1),
|
|
toString(val2), actual, expected, file, line);
|
|
}
|
|
+KDBTESTUTILS_EXPORT bool qCompare(const QByteArray &val1, const char *val2, const char *actual,
|
|
+ const char *expected, const char *file, int line)
|
|
+{
|
|
+ return qCompare(val1, QByteArray(val2), actual, expected, file, line);
|
|
+}
|
|
+KDBTESTUTILS_EXPORT bool qCompare(const QString &val1, const char *val2, const char *actual,
|
|
+ const char *expected, const char *file, int line)
|
|
+{
|
|
+ return qCompare(val1, QString::fromLatin1(val2), actual, expected, file, line);
|
|
+}
|
|
}
|
|
|
|
class KDbTestUtils::Private {
|