diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-14 21:47:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-14 21:47:02 +0300 |
commit | 24a5939846bf593e17e09f3564d941a7c2a5bf27 (patch) | |
tree | e37187b6411480aeb385accc9345c14ab2652ebe /src/utils/files.cpp | |
parent | 4424f769af82000bc84b9d4c9f46c20834a817e6 (diff) | |
download | manaverse-24a5939846bf593e17e09f3564d941a7c2a5bf27.tar.gz manaverse-24a5939846bf593e17e09f3564d941a7c2a5bf27.tar.bz2 manaverse-24a5939846bf593e17e09f3564d941a7c2a5bf27.tar.xz manaverse-24a5939846bf593e17e09f3564d941a7c2a5bf27.zip |
fix code style.
Diffstat (limited to 'src/utils/files.cpp')
-rw-r--r-- | src/utils/files.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/files.cpp b/src/utils/files.cpp index 39451b129..24ec9366e 100644 --- a/src/utils/files.cpp +++ b/src/utils/files.cpp @@ -200,7 +200,7 @@ int Files::copyFile(const std::string &restrict srcName, void Files::getFiles(const std::string &path, StringVect &list) { char **fonts = PhysFs::enumerateFiles(path.c_str()); - for (char **i = fonts; *i; i++) + for (char *const *i = fonts; *i; i++) { if (!PhysFs::isDirectory((path + *i).c_str())) list.push_back(*i); @@ -211,7 +211,7 @@ void Files::getFiles(const std::string &path, StringVect &list) void Files::getDirs(const std::string &path, StringVect &list) { char **fonts = PhysFs::enumerateFiles(path.c_str()); - for (char **i = fonts; *i; i++) + for (char *const *i = fonts; *i; i++) { if (PhysFs::isDirectory((path + *i).c_str())) list.push_back(*i); @@ -222,7 +222,7 @@ void Files::getDirs(const std::string &path, StringVect &list) void Files::getFilesWithDir(const std::string &path, StringVect &list) { char **fonts = PhysFs::enumerateFiles(path.c_str()); - for (char **i = fonts; *i; i++) + for (char *const *i = fonts; *i; i++) { if (!PhysFs::isDirectory((path + *i).c_str())) list.push_back(path + *i); |