mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-04 13:07:38 +03:00
Coding style fixes.
This commit is contained in:
parent
c8ad27975a
commit
72defa375d
3 changed files with 5 additions and 2 deletions
|
@ -92,6 +92,8 @@ void TestDeletedObjects::testDeletedObjectsFromFile()
|
||||||
Database* db = reader->readDatabase(xmlFile);
|
Database* db = reader->readDatabase(xmlFile);
|
||||||
|
|
||||||
createAndDelete(db, 2);
|
createAndDelete(db, 2);
|
||||||
|
|
||||||
|
delete db;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestDeletedObjects::testDeletedObjectsFromNewDb()
|
void TestDeletedObjects::testDeletedObjectsFromNewDb()
|
||||||
|
@ -99,6 +101,8 @@ void TestDeletedObjects::testDeletedObjectsFromNewDb()
|
||||||
Database* db = new Database();
|
Database* db = new Database();
|
||||||
|
|
||||||
createAndDelete(db, 0);
|
createAndDelete(db, 0);
|
||||||
|
|
||||||
|
delete db;
|
||||||
}
|
}
|
||||||
|
|
||||||
KEEPASSX_QTEST_CORE_MAIN(TestDeletedObjects)
|
KEEPASSX_QTEST_CORE_MAIN(TestDeletedObjects)
|
||||||
|
|
|
@ -33,7 +33,6 @@ private Q_SLOTS:
|
||||||
void initTestCase();
|
void initTestCase();
|
||||||
void testDeletedObjectsFromFile();
|
void testDeletedObjectsFromFile();
|
||||||
void testDeletedObjectsFromNewDb();
|
void testDeletedObjectsFromNewDb();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // KEEPASSX_TESTDELETEDOBJECTS_H
|
#endif // KEEPASSX_TESTDELETEDOBJECTS_H
|
||||||
|
|
|
@ -188,7 +188,7 @@ void TestGroup::testDeleteSignals()
|
||||||
delete group2;
|
delete group2;
|
||||||
QCOMPARE(spyEntryAboutToRemove2.count(), 0);
|
QCOMPARE(spyEntryAboutToRemove2.count(), 0);
|
||||||
QCOMPARE(spyEntryRemoved2.count(), 0);
|
QCOMPARE(spyEntryRemoved2.count(), 0);
|
||||||
|
delete db2;
|
||||||
}
|
}
|
||||||
|
|
||||||
KEEPASSX_QTEST_CORE_MAIN(TestGroup)
|
KEEPASSX_QTEST_CORE_MAIN(TestGroup)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue