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
parent
b78342f553
commit
aaf60da01c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue