Commit de05ceea authored by Fabian Kosmale's avatar Fabian Kosmale
Browse files

fix whitespace issue, use default constructor for QString

parent 81ce7c95
......@@ -116,7 +116,7 @@ void QueueOperation::transactionCreated(AkabeiClient::Transaction* t)
if (!t->questions().isEmpty()) {
foreach (AkabeiClient::TransactionQuestion *q, t->questions()) {
if (m_options.contains(APM::NoConfirm)) {
if (q->suggestedAnswer().letter != QString("")) {
if (q->suggestedAnswer().letter != QString()) {
q->setAnswer(q->suggestedAnswer().letter);
} else {
q->setAnswer(q->possibleAnswers().first().letter);
......
......@@ -148,14 +148,14 @@ void listKeys(gpgme_ctx_t ctx)
QTextStream out(stdout);
while (!error) {
error = gpgme_op_keylist_next(ctx, &key);
error = gpgme_op_keylist_next(ctx, &key);
if (error) {
break;
}
if (error) {
break;
}
out << "- " << key->subkeys->keyid << " " << key->uids->name << " " << key->uids->email << endl;
gpgme_key_release(key);
out << "- " << key->subkeys->keyid << " " << key->uids->name << " " << key->uids->email << endl;
gpgme_key_release(key);
}
if (gpgme_err_code(error) != GPG_ERR_EOF) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment