Restore formatting

This commit is contained in:
Gianluca Recchia 2019-01-29 05:39:43 +01:00 committed by Jonathan White
parent c01e14c879
commit 0dac53df54
No known key found for this signature in database
GPG Key ID: 440FC65F2E0C6E01
2 changed files with 8 additions and 7 deletions

View File

@ -482,7 +482,8 @@ void BrowserService::updateEntry(const QString& id,
}
}
QList<Entry*> BrowserService::searchEntries(const QSharedPointer<Database>& db, const QString& hostname, const QString& url)
QList<Entry*>
BrowserService::searchEntries(const QSharedPointer<Database>& db, const QString& hostname, const QString& url)
{
QList<Entry*> entries;
auto* rootGroup = db->rootGroup();

View File

@ -135,13 +135,13 @@ namespace Utils
auto db = QSharedPointer<Database>::create();
QString error;
if (db->open(databaseFilename, compositeKey, &error, false)) {
return db;
}else {
err << error << endl;
return {};
if (db->open(databaseFilename, compositeKey, &error, false)) {
return db;
} else {
err << error << endl;
return {};
}
}
}
/**
* Read a user password from STDIN or return a password previously