diff options
| author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-03-30 22:05:21 +0000 |
|---|---|---|
| committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-03-30 22:05:21 +0000 |
| commit | 76e2ce3a4434bde33d2d39d0d1b64d4f9ba897d0 (patch) | |
| tree | a65661b634ecc15bef0ec559dd8bb3040b281444 | |
| parent | c52293344d3ccb2b5b963cba1abbfd3e0ffce938 (diff) | |
| download | rockbox-76e2ce3a4434bde33d2d39d0d1b64d4f9ba897d0.zip rockbox-76e2ce3a4434bde33d2d39d0d1b64d4f9ba897d0.tar.gz rockbox-76e2ce3a4434bde33d2d39d0d1b64d4f9ba897d0.tar.bz2 rockbox-76e2ce3a4434bde33d2d39d0d1b64d4f9ba897d0.tar.xz | |
Code police and remove trailing whitespaces.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20590 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | rbutil/rbutilqt/base/rbzip.cpp | 14 | ||||
| -rw-r--r-- | rbutil/rbutilqt/base/rbzip.h | 12 |
2 files changed, 13 insertions, 13 deletions
diff --git a/rbutil/rbutilqt/base/rbzip.cpp b/rbutil/rbutilqt/base/rbzip.cpp index b5cfb22..c011c0c 100644 --- a/rbutil/rbutilqt/base/rbzip.cpp +++ b/rbutil/rbutilqt/base/rbzip.cpp @@ -26,32 +26,32 @@ Zip::ErrorCode RbZip::createZip(QString zip,QString dir) Zip::ErrorCode error = Ok; m_curEntry = 1; m_numEntrys=0; - + QCoreApplication::processEvents(); - + // get number of entrys in dir QDirIterator it(dir, QDirIterator::Subdirectories); - while (it.hasNext()) + while (it.hasNext()) { it.next(); m_numEntrys++; QCoreApplication::processEvents(); } - + //! create zip error = Zip::createArchive(zip); if(error != Ok) return error; - + //! add the content error = Zip::addDirectory(dir); if(error != Ok) return error; - + //! close zip error = Zip::closeArchive(); - + return error; } diff --git a/rbutil/rbutilqt/base/rbzip.h b/rbutil/rbutilqt/base/rbzip.h index d7cf05f..d2681ec 100644 --- a/rbutil/rbutilqt/base/rbzip.h +++ b/rbutil/rbutilqt/base/rbzip.h @@ -27,15 +27,15 @@ class RbZip : public QObject, public Zip { - Q_OBJECT - public: + Q_OBJECT + public: Zip::ErrorCode createZip(QString zip,QString dir); virtual void progress(); - - signals: - void zipProgress(int, int); - + + signals: + void zipProgress(int, int); + private: int m_curEntry; int m_numEntrys; |