From a68b9055347759ba71db77559047c44db02e8f46 Mon Sep 17 00:00:00 2001 From: nils Date: Sat, 19 Sep 2009 15:50:33 +0000 Subject: cosmetic changes(indention) git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@217 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- context.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'context.cpp') diff --git a/context.cpp b/context.cpp index a46fa87..947aacb 100644 --- a/context.cpp +++ b/context.cpp @@ -113,9 +113,9 @@ void Context::importKey(QByteArray inBuffer) */ void Context::generateKey(QString *params) { - err = gpgme_op_genkey(mCtx, params->toAscii().data(), NULL,NULL); - checkErr(err); - emit keyDBChanged(); + err = gpgme_op_genkey(mCtx, params->toAscii().data(), NULL, NULL); + checkErr(err); + emit keyDBChanged(); } /** Export Key to QByteArray @@ -139,7 +139,7 @@ bool Context::exportKeys(QList *uidList, QByteArray *outBuffer) err = gpgme_op_export(mCtx, uidList->at(i).toAscii().constData(), 0, out); checkErr(err); - read_bytes = gpgme_data_seek (out, 0, SEEK_END); + read_bytes = gpgme_data_seek(out, 0, SEEK_END); err = readToBuffer(out, outBuffer); checkErr(err); @@ -382,9 +382,9 @@ gpgme_error_t Context::passphrase(const char *uid_hint, if (result) { #ifndef _WIN32 - if( write(fd, m_cache.data(), m_cache.length()) == -1) { - qDebug() << "something is terribly broken"; - } + if (write(fd, m_cache.data(), m_cache.length()) == -1) { + qDebug() << "something is terribly broken"; + } #else DWORD written; WriteFile((HANDLE) fd, m_cache.data(), m_cache.length(), &written, 0); @@ -394,8 +394,8 @@ gpgme_error_t Context::passphrase(const char *uid_hint, } #ifndef _WIN32 - if( write(fd, "\n", 1) == -1 ) { - qDebug() << "something is terribly broken"; + if (write(fd, "\n", 1) == -1) { + qDebug() << "something is terribly broken"; } #else DWORD written; -- cgit