From 1d4cd150413526a998eb29e50c61ac8ef4d95f0e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Dec 2013 23:22:30 +0300 Subject: add restrict into updaterwindow. --- src/gui/windows/updaterwindow.cpp | 16 ++++++++-------- src/gui/windows/updaterwindow.h | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'src/gui/windows') diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp index f185c1ed5..003529fbc 100644 --- a/src/gui/windows/updaterwindow.cpp +++ b/src/gui/windows/updaterwindow.cpp @@ -144,8 +144,8 @@ static std::vector loadTxtFile(const std::string &fileName) return files; } -UpdaterWindow::UpdaterWindow(const std::string &updateHost, - const std::string &updatesDir, +UpdaterWindow::UpdaterWindow(const std::string &restrict updateHost, + const std::string &restrict updatesDir, const bool applyUpdates, const int updateType): // TRANSLATORS: updater window name @@ -670,9 +670,9 @@ void UpdaterWindow::unloadManaPlusUpdates(const std::string &dir, } void UpdaterWindow::addUpdateFile(const ResourceManager *const resman, - const std::string &path, - const std::string &fixPath, - const std::string &file, + const std::string &restrict path, + const std::string &restrict fixPath, + const std::string &restrict file, const bool append) { const std::string tmpPath = std::string(path).append("/").append(file); @@ -689,9 +689,9 @@ void UpdaterWindow::addUpdateFile(const ResourceManager *const resman, } void UpdaterWindow::removeUpdateFile(const ResourceManager *const resman, - const std::string &path, - const std::string &fixPath, - const std::string &file) + const std::string &restrict path, + const std::string &restrict fixPath, + const std::string &restrict file) { resman->removeFromSearchPath(std::string(path).append("/").append(file)); const std::string fixFile = std::string(fixPath).append("/").append(file); diff --git a/src/gui/windows/updaterwindow.h b/src/gui/windows/updaterwindow.h index 6003cf976..210b01bda 100644 --- a/src/gui/windows/updaterwindow.h +++ b/src/gui/windows/updaterwindow.h @@ -81,8 +81,8 @@ class UpdaterWindow final : public Window, * @param applyUpdates If true, the update window will pass the updates to teh * resource manager */ - UpdaterWindow(const std::string &updateHost, - const std::string &updatesDir, + UpdaterWindow(const std::string &restrict updateHost, + const std::string &restrict updatesDir, const bool applyUpdates, const int updateType); A_DELETE_COPY(UpdaterWindow) @@ -133,15 +133,15 @@ class UpdaterWindow final : public Window, static void unloadUpdates(const std::string &dir); static void addUpdateFile(const ResourceManager *const resman, - const std::string &path, - const std::string &fixPath, - const std::string &file, + const std::string &restrict path, + const std::string &restrict fixPath, + const std::string &restrict file, const bool append); static void removeUpdateFile(const ResourceManager *const resman, - const std::string &path, - const std::string &fixPath, - const std::string &file); + const std::string &restrict path, + const std::string &restrict fixPath, + const std::string &filerestrict ); static void loadManaPlusUpdates(const std::string &dir, const ResourceManager *const resman); -- cgit v1.2.3-70-g09d2