aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/cmdlineparser
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-10-24 11:41:18 -0700
committerJake Petroules <jake.petroules@qt.io>2017-11-22 16:15:21 +0000
commit1445ea6d69146b2c05efbfe142c557f9bf724025 (patch)
treebf18018fbd4254f1aeb624ab61a9862e4aa8a951 /tests/auto/cmdlineparser
parentc8d0d4fe646e60daea678602d7ca71e492fb65ad (diff)
STL compatibility: use push_back() instead of append()
...or operator<< if the argument was itself a list, or brace init where appropriate. This is a simple find and replace with manual sanity check. Change-Id: I94b79cbf3752192dd258001bf1dfcd46f58ca352 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/cmdlineparser')
-rw-r--r--tests/auto/cmdlineparser/tst_cmdlineparser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/cmdlineparser/tst_cmdlineparser.cpp b/tests/auto/cmdlineparser/tst_cmdlineparser.cpp
index 59f4adbc3..88a458d53 100644
--- a/tests/auto/cmdlineparser/tst_cmdlineparser.cpp
+++ b/tests/auto/cmdlineparser/tst_cmdlineparser.cpp
@@ -59,8 +59,8 @@ private slots:
void testValidCommandLine()
{
QStringList args;
- args.append("-vvk");
- args.append("-v");
+ args.push_back("-vvk");
+ args.push_back("-v");
args << "--products" << "blubb";
args << "--changed-files" << "foo,bar" << m_fileArgs;
args << "--check-timestamps";