From aaf60da01cc903c3bdb08e6ff11cad0511c6fc05 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Thu, 21 Jun 2018 19:21:28 +0200 Subject: [PATCH] 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 --- .../corelib/tools/qregularexpression/tst_qregularexpression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("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);