summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-03-30 22:05:21 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-03-30 22:05:21 +0000
commit76e2ce3a4434bde33d2d39d0d1b64d4f9ba897d0 (patch)
treea65661b634ecc15bef0ec559dd8bb3040b281444
parentc52293344d3ccb2b5b963cba1abbfd3e0ffce938 (diff)
downloadrockbox-76e2ce3a4434bde33d2d39d0d1b64d4f9ba897d0.tar.gz
rockbox-76e2ce3a4434bde33d2d39d0d1b64d4f9ba897d0.tar.bz2
rockbox-76e2ce3a4434bde33d2d39d0d1b64d4f9ba897d0.zip
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.cpp14
-rw-r--r--rbutil/rbutilqt/base/rbzip.h12
2 files changed, 13 insertions, 13 deletions
diff --git a/rbutil/rbutilqt/base/rbzip.cpp b/rbutil/rbutilqt/base/rbzip.cpp
index b5cfb22416..c011c0ccbc 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 d7cf05f3de..d2681ec097 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;