From 346ca047b948a54be448b92999dfe9b5e85d0dac Mon Sep 17 00:00:00 2001 From: James Turk Date: Thu, 18 Aug 2005 06:01:37 +0000 Subject: [PATCH] fixed MSVC compilation (didn't like pointer initializers) --- src/util/filesys/filesys.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/util/filesys/filesys.cpp b/src/util/filesys/filesys.cpp index 062856b..027f55f 100644 --- a/src/util/filesys/filesys.cpp +++ b/src/util/filesys/filesys.cpp @@ -5,7 +5,7 @@ // James Turk (jpt2433@rit.edu) // // Version: -// $Id: filesys.cpp,v 1.5 2005/07/18 06:18:50 cozman Exp $ +// $Id: filesys.cpp,v 1.6 2005/08/18 06:01:37 cozman Exp $ #include "util/filesys/filesys.hpp" @@ -23,7 +23,7 @@ namespace filesys std::vector getCDDirs() { std::vector dirs; - char** buf( PHYSFS_getCdRomDirs() ); + char** buf = PHYSFS_getCdRomDirs(); if(buf == 0) { @@ -32,7 +32,7 @@ std::vector getCDDirs() } //iterate over list, adding dirs - for(char** i(buf); *i != 0; ++i) + for(char** i = buf; *i != 0; ++i) { dirs.push_back(*i); } @@ -71,7 +71,7 @@ void removeFromSearchPath(const std::string& dir) std::vector getSearchPath() { std::vector dirs; - char** buf( PHYSFS_getSearchPath() ); + char** buf = PHYSFS_getSearchPath(); if(buf == 0) { @@ -80,7 +80,7 @@ std::vector getSearchPath() } //iterate over list, adding dirs - for(char** i(buf); *i != 0; ++i) + for(char** i = buf; *i != 0; ++i) { dirs.push_back(*i); } @@ -121,7 +121,7 @@ bool remove(const std::string& item) std::vector listDir(const std::string& dir) { std::vector files; - char** buf( PHYSFS_enumerateFiles(dir.c_str()) ); + char** buf = PHYSFS_enumerateFiles(dir.c_str()); if(buf == 0) { @@ -130,7 +130,7 @@ std::vector listDir(const std::string& dir) } //iterate over list, adding dirs - for(char** i(buf); *i != 0; ++i) + for(char** i = buf; *i != 0; ++i) { files.push_back(*i); }