summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2018-06-21 19:21:28 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2018-06-27 17:52:45 +0000
commitaaf60da01cc903c3bdb08e6ff11cad0511c6fc05 (patch)
treea8c3cc3931a055981bb0f11ab0c261d3a2c8f1c9
parentb78342f553ee13944c19bfdf77cdf68b0de87e50 (diff)
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>
-rw-r--r--tests/auto/corelib/tools/qregularexpression/tst_qregularexpression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/tools/qregularexpression/tst_qregularexpression.cpp b/tests/auto/corelib/tools/qregularexpression/tst_qregularexpression.cpp
index 1a6fdaaa61..5130b7cfcd 100644
--- a/tests/auto/corelib/tools/qregularexpression/tst_qregularexpression.cpp
+++ b/tests/auto/corelib/tools/qregularexpression/tst_qregularexpression.cpp
@@ -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);