QRegularExpression: fix compiler warning in test

QTest::addRow expects a format specifier; this usage makes GCC complain
with -Wformat-security. Use the "old" newRow call instead.

Change-Id: Ieed8e4f64ff5e3d0d4e87325629d20ed6839ff9d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Giuseppe D'Angelo 2018-06-21 19:21:28 +02:00
parent b78342f553
commit aaf60da01c
1 changed files with 1 additions and 1 deletions

View File

@ -2159,7 +2159,7 @@ void tst_QRegularExpression::wildcard_data()
QTest::addColumn<int>("foundIndex");
auto addRow = [](const char *pattern, const char *string, int foundIndex) {
QTest::addRow(pattern) << pattern << string << foundIndex;
QTest::newRow(pattern) << pattern << string << foundIndex;
};
addRow("*.html", "test.html", 0);