[Marble-commits] KDE/kdeedu/marble/src/lib
Jens-Michael Hoffmann
jensmh at gmx.de
Tue Jan 26 14:03:47 CET 2010
SVN commit 1080562 by jmhoffmann:
Better use int instead of quint8, it is more safe and portable.
M +3 -3 FileStorageWatcher.cpp
M +1 -1 FileStorageWatcher.h
--- trunk/KDE/kdeedu/marble/src/lib/FileStorageWatcher.cpp #1080561:1080562
@@ -27,10 +27,10 @@
// Only remove 20 files without checking
// changed cacheLimits and changed themes etc.
-static const quint8 maxFilesDelete = 20;
+static const int maxFilesDelete = 20;
// Delete only files that are older than 120 Seconds
-static const quint8 deleteOnlyFilesOlderThan = 120;
-static const quint8 softLimitPercent = 5;
+static const int deleteOnlyFilesOlderThan = 120;
+static const int softLimitPercent = 5;
// Methods of FileStorageWatcherThread
--- trunk/KDE/kdeedu/marble/src/lib/FileStorageWatcher.h #1080561:1080562
@@ -100,7 +100,7 @@
quint64 m_cacheLimit;
quint64 m_cacheSoftLimit;
quint64 m_currentCacheSize;
- quint8 m_filesDeleted;
+ int m_filesDeleted;
bool m_deleting;
QString m_mapThemeId;
QMutex m_limitMutex;
More information about the Marble-commits
mailing list