diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2009-09-19 15:50:33 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2009-09-19 15:50:33 +0000 |
commit | a68b9055347759ba71db77559047c44db02e8f46 (patch) | |
tree | f96a063617f24ddd3c568e89206cf17ebc24a474 /context.cpp | |
parent | new version number and smaller changes (diff) | |
download | gpg4usb-a68b9055347759ba71db77559047c44db02e8f46.tar.gz gpg4usb-a68b9055347759ba71db77559047c44db02e8f46.zip |
cosmetic changes(indention)
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@217 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'context.cpp')
-rw-r--r-- | context.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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<QString> *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; |