diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-06-23 01:25:05 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-06-23 01:25:05 +0200 |
commit | d9195bff3a6088bb0f116d61fc8c961e3ba4e3f2 (patch) | |
tree | 4b3f62064936f93775f09db0bb5a79b82c58b99e /libmultimc/include/gameupdatetask.h | |
parent | 929698ff15bdd44a5bd8d8b5c1e13be9c55a1cac (diff) | |
download | MultiMC-d9195bff3a6088bb0f116d61fc8c961e3ba4e3f2.tar MultiMC-d9195bff3a6088bb0f116d61fc8c961e3ba4e3f2.tar.gz MultiMC-d9195bff3a6088bb0f116d61fc8c961e3ba4e3f2.tar.lz MultiMC-d9195bff3a6088bb0f116d61fc8c961e3ba4e3f2.tar.xz MultiMC-d9195bff3a6088bb0f116d61fc8c961e3ba4e3f2.zip |
Fix crashes from uninitialized variables, small naming fix for smart pointers
Diffstat (limited to 'libmultimc/include/gameupdatetask.h')
-rw-r--r-- | libmultimc/include/gameupdatetask.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmultimc/include/gameupdatetask.h b/libmultimc/include/gameupdatetask.h index 63d11113..c3f84356 100644 --- a/libmultimc/include/gameupdatetask.h +++ b/libmultimc/include/gameupdatetask.h @@ -29,7 +29,7 @@ #include "libmmc_config.h" class FileToDownload; -typedef QSharedPointer<FileToDownload> PtrFileToDownload; +typedef QSharedPointer<FileToDownload> FileToDownloadPtr; class FileToDownload : public QObject { @@ -49,7 +49,7 @@ class FileToDownload : public QObject private: FileToDownload(const QUrl &url, const QString &path, QObject *parent = 0); public: - static PtrFileToDownload Create(const QUrl &url, const QString &path, QObject *parent = 0); + static FileToDownloadPtr Create(const QUrl &url, const QString &path, QObject *parent = 0); virtual QUrl url() const { return m_dlURL; } virtual void setURL(const QUrl &url) { m_dlURL = url; } @@ -92,7 +92,7 @@ public: virtual void executeTask(); - virtual bool downloadFile(const PtrFileToDownload file); + virtual bool downloadFile(const FileToDownloadPtr file); ////////////////////// @@ -155,7 +155,7 @@ private: //////////////////////// // List of URLs that the game updater will need to download. - QList<PtrFileToDownload> m_downloadList; + QList<FileToDownloadPtr> m_downloadList; int m_currentDownload; |