From f8a9cbf78a0ae2f1d571f773275cd6493fb1a4ea Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 May 2020 12:20:48 +0300 Subject: Remove useless struct keyword --- src/fs/files.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fs/files.cpp') diff --git a/src/fs/files.cpp b/src/fs/files.cpp index 1ff57ad9f..fcce1c0ea 100644 --- a/src/fs/files.cpp +++ b/src/fs/files.cpp @@ -271,7 +271,7 @@ void Files::saveTextFile(const std::string &path, void Files::deleteFilesInDirectory(std::string path) { path = pathJoin(path, dirSeparator); - const struct dirent *next_file = nullptr; + const dirent *next_file = nullptr; DIR *const dir = opendir(path.c_str()); if (dir != nullptr) @@ -296,7 +296,7 @@ void Files::enumFiles(StringVect &files, if (dir != nullptr) { - const struct dirent *next_file = nullptr; + const dirent *next_file = nullptr; while ((next_file = readdir(dir)) != nullptr) { const std::string file = next_file->d_name; -- cgit v1.2.3-60-g2f50