mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-03 20:47:37 +03:00
some cppcheck and clang-tidy fixies
This commit is contained in:
parent
ac7face247
commit
98badfb4a2
9 changed files with 16 additions and 14 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue