aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/unittest/unittest-utility-functions.h
diff options
context:
space:
mode:
authorMarco Bubke <[email protected]>2018-09-06 11:57:36 +0200
committerMarco Bubke <[email protected]>2018-09-12 14:32:34 +0000
commite0b7a283332095fea03a5bed310b632e72f7d486 (patch)
tree39298c1fb984c0492da6118bb428385a88e18f75 /tests/unit/unittest/unittest-utility-functions.h
parent415fc654cce0228d8e3800ddc1ebe3517c3ff119 (diff)
Clang: Add refactoring project updater
The project parts are now first used by the pch manager and then notified by the pch manager to the refactoring plugin. Change-Id: I88074d8891cd0de9721497bbafee0deffc0b6339 Reviewed-by: Ivan Donchevskii <[email protected]>
Diffstat (limited to 'tests/unit/unittest/unittest-utility-functions.h')
-rw-r--r--tests/unit/unittest/unittest-utility-functions.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit/unittest/unittest-utility-functions.h b/tests/unit/unittest/unittest-utility-functions.h
index 5fb9c25882e..52f0489928b 100644
--- a/tests/unit/unittest/unittest-utility-functions.h
+++ b/tests/unit/unittest/unittest-utility-functions.h
@@ -29,6 +29,12 @@
#include <QDir>
+inline
+bool operator==(const QString &first, const char *second)
+{
+ return first == QString::fromUtf8(second, int(std::strlen(second)));
+}
+
namespace UnitTest {
inline