summaryrefslogtreecommitdiff
path: root/src/gui/windows/updaterwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-17 23:22:30 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-17 23:22:30 +0300
commit1d4cd150413526a998eb29e50c61ac8ef4d95f0e (patch)
treea80d1173982413da65202cc1218cb1813f96dfa9 /src/gui/windows/updaterwindow.cpp
parente6e139910e6773f68b8a2818a0529cd5ca37f31a (diff)
downloadmanaplus-1d4cd150413526a998eb29e50c61ac8ef4d95f0e.tar.gz
manaplus-1d4cd150413526a998eb29e50c61ac8ef4d95f0e.tar.bz2
manaplus-1d4cd150413526a998eb29e50c61ac8ef4d95f0e.tar.xz
manaplus-1d4cd150413526a998eb29e50c61ac8ef4d95f0e.zip
add restrict into updaterwindow.
Diffstat (limited to 'src/gui/windows/updaterwindow.cpp')
-rw-r--r--src/gui/windows/updaterwindow.cpp16
1 files changed, 8 insertions, 8 deletions
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<UpdateFile> 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);