Coding style fixes.

This commit is contained in:
Felix Geyer 2012-04-22 00:29:16 +02:00
parent c8ad27975a
commit 72defa375d
3 changed files with 5 additions and 2 deletions

View file

@ -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)

View file

@ -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

View file

@ -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)