diff options
Diffstat (limited to 'tests/util.h')
| -rw-r--r-- | tests/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/util.h b/tests/util.h index dc36e7af..035c8293 100644 --- a/tests/util.h +++ b/tests/util.h @@ -38,7 +38,8 @@ if (!QTest::qVerify(statement, #statement, description, __FILE__, __LINE__)) \ return {}; -inline QDomElement xmlToDom(const QByteArray &xml) +template<typename String> +inline QDomElement xmlToDom(const String &xml) { QDomDocument doc; QVERIFY_RV(doc.setContent(xml, true), "XML is not valid"); |
