From d620dcdd085ddca34f990588aae1c314917a5d32 Mon Sep 17 00:00:00 2001 From: Lukas Pioch Date: Wed, 16 Dec 2015 19:31:57 +0100 Subject: Moved variables into scope, removed unused variables and fixed variables --- src/OSSupport/File.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/OSSupport/File.cpp') diff --git a/src/OSSupport/File.cpp b/src/OSSupport/File.cpp index 0511c6083..d99892aae 100644 --- a/src/OSSupport/File.cpp +++ b/src/OSSupport/File.cpp @@ -532,7 +532,6 @@ AStringVector cFile::GetFolderContents(const AString & a_Folder) #else // _WIN32 DIR * dp; - struct dirent *dirp; AString Folder = a_Folder; if (Folder.empty()) { @@ -544,6 +543,7 @@ AStringVector cFile::GetFolderContents(const AString & a_Folder) } else { + struct dirent *dirp; while ((dirp = readdir(dp)) != nullptr) { AllFiles.push_back(dirp->d_name); -- cgit v1.2.3