From 1d33de59a95bac775c1e99f4773ba4e64fe476f8 Mon Sep 17 00:00:00 2001 From: xawotihs Date: Sun, 12 Jan 2014 22:56:53 +0100 Subject: [PATCH] Fixed compilation issue --- JGE/include/Downloader.h | 10 +++++----- JGE/src/Downloader.cpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/JGE/include/Downloader.h b/JGE/include/Downloader.h index 3b7ea66d5..96c643ae2 100644 --- a/JGE/include/Downloader.h +++ b/JGE/include/Downloader.h @@ -65,8 +65,8 @@ protected: string mETag; DownloadStatus mDownloadStatus; bool mUpgradeAvailable; - uint32_t mTotalSize; - uint32_t mCurrentSize; + size_t mTotalSize; + size_t mCurrentSize; ofstream mFile; #ifdef QT_CONFIG QNetworkReply* mNetworkReply; @@ -79,8 +79,8 @@ public: string remoteResourceURL="", string ETag = "", DownloadStatus downloadStatus=NOT_PRESENT, - uint32_t totalSize = 0, - uint32_t currentSize = 0); + size_t totalSize = 0, + size_t currentSize = 0); ~DownloadRequest(); static bool NetworkIsAccessible(); @@ -92,7 +92,7 @@ public: void startHead(); DownloadStatus getDownloadStatus() const { return mDownloadStatus; }; bool upgradeAvailable() const { return mUpgradeAvailable; }; - void getSizes(uint32_t& totalSize, uint32_t¤tSize) { + void getSizes(size_t& totalSize, size_t¤tSize) { totalSize = mTotalSize; currentSize = mCurrentSize; }; diff --git a/JGE/src/Downloader.cpp b/JGE/src/Downloader.cpp index 4cb92534a..e1ba9eb26 100644 --- a/JGE/src/Downloader.cpp +++ b/JGE/src/Downloader.cpp @@ -12,8 +12,8 @@ DownloadRequest::DownloadRequest(string localPath, string remoteResourceURL, string ETag, DownloadStatus downloadStatus, - uint32_t totalSize, - uint32_t currentSize): + size_t totalSize, + size_t currentSize): mLocalPath(localPath), mRemoteResourceURL(remoteResourceURL), mRequestedRemoteResourceURL(remoteResourceURL),