some cppcheck and clang-tidy fixies

This commit is contained in:
asapelkin 2019-10-31 23:44:40 +03:00 committed by Jonathan White
parent ac7face247
commit 98badfb4a2
9 changed files with 16 additions and 14 deletions

View file

@ -111,7 +111,7 @@ void TestCsvParser::testEmptySimple()
out << "";
QVERIFY(parser->parse(file.data()));
t = parser->getCsvTable();
QVERIFY(t.size() == 0);
QVERIFY(t.isEmpty());
}
void TestCsvParser::testEmptyQuoted()
@ -120,7 +120,7 @@ void TestCsvParser::testEmptyQuoted()
out << "\"\"";
QVERIFY(parser->parse(file.data()));
t = parser->getCsvTable();
QVERIFY(t.size() == 0);
QVERIFY(t.isEmpty());
}
void TestCsvParser::testEmptyNewline()
@ -129,14 +129,14 @@ void TestCsvParser::testEmptyNewline()
out << "\"\n\"";
QVERIFY(parser->parse(file.data()));
t = parser->getCsvTable();
QVERIFY(t.size() == 0);
QVERIFY(t.isEmpty());
}
void TestCsvParser::testEmptyFile()
{
QVERIFY(parser->parse(file.data()));
t = parser->getCsvTable();
QVERIFY(t.size() == 0);
QVERIFY(t.isEmpty());
}
void TestCsvParser::testNewline()
@ -281,7 +281,7 @@ void TestCsvParser::testEmptyReparsing()
parser->parse(nullptr);
QVERIFY(parser->reparse());
t = parser->getCsvTable();
QVERIFY(t.size() == 0);
QVERIFY(t.isEmpty());
}
void TestCsvParser::testReparsing()