Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGianluca Recchia <gianluca.recchia97@gmail.com>2018-11-02 05:38:55 +0300
committerJonathan White <support@dmapps.us>2018-11-29 02:29:15 +0300
commite81841550b59749be2f12a66874f729cb9a8587c (patch)
tree4998196155056f4e51e74e2460b3b672a2afbbc6 /tests/TestKeePass1Reader.cpp
parentfc930bae69be516cb2ad72e83dad1cf6d8631956 (diff)
Correct checks for containers' emptiness
Diffstat (limited to 'tests/TestKeePass1Reader.cpp')
-rw-r--r--tests/TestKeePass1Reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/TestKeePass1Reader.cpp b/tests/TestKeePass1Reader.cpp
index bb9e07a42..078447acb 100644
--- a/tests/TestKeePass1Reader.cpp
+++ b/tests/TestKeePass1Reader.cpp
@@ -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()) {