]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Models.cpp
Replaced as much char* as possible by std::strings
[lugaru.git] / Source / Models.cpp
index 4879ac26608382145611f57c6147bd30a531fa6e..2c301689ea38f8cd3695e7ebd5693fc2d838ec0c 100644 (file)
@@ -400,7 +400,7 @@ void Model::UpdateVertexArrayNoTexNoNorm()
     }
 }
 
-bool Model::loadnotex(const char *filename )
+bool Model::loadnotex(const std::string& filename )
 {
     FILE *tfile;
     long i;
@@ -464,7 +464,7 @@ bool Model::loadnotex(const char *filename )
 }
 
 
-bool Model::load(const char *filename, bool texture )
+bool Model::load(const std::string& filename, bool texture )
 {
     FILE *tfile;
     long i;
@@ -538,7 +538,7 @@ bool Model::load(const char *filename, bool texture )
     return true;
 }
 
-bool Model::loaddecal(const char *filename, bool texture )
+bool Model::loaddecal(const std::string& filename, bool texture )
 {
     FILE *tfile;
     long i, j;
@@ -633,7 +633,7 @@ bool Model::loaddecal(const char *filename, bool texture )
     return true;
 }
 
-bool Model::loadraw(char *filename )
+bool Model::loadraw(const std::string& filename)
 {
     FILE *tfile;
     long i;