diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-05-15 14:20:04 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-05-15 14:20:04 +0000 |
commit | ba29e3245d916022ebe36bc9070ee616d39e6b1d (patch) | |
tree | 6e3f8529cd4a131bc05a3039a88c529b05fc967f /attachments.cpp | |
parent | add attachmnet-view to view-menu (diff) | |
download | gpg4usb-ba29e3245d916022ebe36bc9070ee616d39e6b1d.tar.gz gpg4usb-ba29e3245d916022ebe36bc9070ee616d39e6b1d.zip |
astyle code beautyfying
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@336 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'attachments.cpp')
-rw-r--r-- | attachments.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/attachments.cpp b/attachments.cpp index ad56540..d25db21 100644 --- a/attachments.cpp +++ b/attachments.cpp @@ -90,7 +90,7 @@ void Attachments::saveFile() QString filename = mp.getParam("Content-Type", "name"); // TODO: find out why filename is quoted filename.chop(1); - filename.remove(0,1); + filename.remove(0, 1); // TODO: check if really base64 saveByteArrayToFile(QByteArray::fromBase64(mp.body), filename); @@ -100,10 +100,10 @@ void Attachments::saveByteArrayToFile(QByteArray outBuffer, QString filename) { //QString path=""; - QString path=filename; + QString path = filename; QString outfileName = QFileDialog::getSaveFileName(this, tr("Save File"), path); - if(outfileName.isEmpty()) return; + if (outfileName.isEmpty()) return; QFile outfile(outfileName); if (!outfile.open(QFile::WriteOnly)) { @@ -122,6 +122,6 @@ void Attachments::saveByteArrayToFile(QByteArray outBuffer, QString filename) void Attachments::addMimePart(MimePart *mp) { - table->add(*mp); + table->add(*mp); } |