aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fuzzy-test
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2017-10-24 10:50:33 -0700
committerJake Petroules <jake.petroules@qt.io>2017-11-16 15:11:15 +0000
commit4432ba4949647917d0fc3fb2ef73f9737a7c2431 (patch)
treee36f48e90f7019ad0ecfb7046638cebf3410930e /tests/fuzzy-test
parenta0c61e70eeefbf9d6c632a94d29bcc2a7e97b7d7 (diff)
STL compatibility: use empty() instead of isEmpty()
This is a simple find and replace with manual sanity check. Change-Id: Iab6d46dcc3be246d1650aae2b1730f933b717be8 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/fuzzy-test')
-rw-r--r--tests/fuzzy-test/commandlineparser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/fuzzy-test/commandlineparser.cpp b/tests/fuzzy-test/commandlineparser.cpp
index 21961540f..86f498dec 100644
--- a/tests/fuzzy-test/commandlineparser.cpp
+++ b/tests/fuzzy-test/commandlineparser.cpp
@@ -49,9 +49,9 @@ void CommandLineParser::parse(const QStringList &commandLine)
m_jobCount = 0;
m_log = false;
m_commandLine = commandLine;
- Q_ASSERT(!m_commandLine.isEmpty());
+ Q_ASSERT(!m_commandLine.empty());
m_command = m_commandLine.takeFirst();
- while (!m_commandLine.isEmpty()) {
+ while (!m_commandLine.empty()) {
const QString arg = m_commandLine.takeFirst();
if (arg == profileOption())
assignOptionArgument(arg, m_profile);
@@ -82,7 +82,7 @@ QString CommandLineParser::usageString() const
void CommandLineParser::assignOptionArgument(const QString &option, QString &argument)
{
- if (m_commandLine.isEmpty())
+ if (m_commandLine.empty())
throw ParseException(QString::fromLatin1("Option '%1' needs an argument.").arg(option));
argument = m_commandLine.takeFirst();
if (argument.isEmpty()) {