Correct checks for containers' emptiness

This commit is contained in:
Gianluca Recchia
2018-11-02 03:38:55 +01:00
committed by Jonathan White
parent fc930bae69
commit e81841550b
6 changed files with 9 additions and 8 deletions

View File

@@ -267,7 +267,7 @@ void TestKeePass1Reader::reopenDatabase(QSharedPointer<Database> db,
QVERIFY(buffer.seek(0));
auto key = QSharedPointer<CompositeKey>::create();
if (!password.isNull()) {
if (!password.isEmpty()) {
key->addKey(QSharedPointer<PasswordKey>::create(password));
}
if (!keyfileName.isEmpty()) {