From aed29264bbd349591d75085e3e6c9b52944fda53 Mon Sep 17 00:00:00 2001 From: cignoni Date: Wed, 26 Jan 2005 22:43:19 +0000 Subject: [PATCH] Add std:: to stl containers --- wrap/io_trimesh/import.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/wrap/io_trimesh/import.h b/wrap/io_trimesh/import.h index c8da9fb4..0e7b1bcd 100644 --- a/wrap/io_trimesh/import.h +++ b/wrap/io_trimesh/import.h @@ -25,6 +25,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.1 2004/11/29 08:12:10 cignoni +Initial Update + ****************************************************************************/ @@ -59,12 +62,12 @@ return lastType; public: // simple aux function that returns true if a given file has a given extesnion -static bool FileExtension(string filename, string extension) +static bool FileExtension(std::string filename, std::string extension) { - locale loc1 ; - use_facet > ( loc1 ).tolower(&*filename.begin(),&*filename.end()); - use_facet > ( loc1 ).tolower(&*extension.begin(),&*extension.end()); - string end=filename.substr(filename.length()-extension.length(),extension.length()); + std::locale loc1 ; + std::use_facet > ( loc1 ).tolower(&*filename.begin(),&*filename.end()); + std::use_facet > ( loc1 ).tolower(&*extension.begin(),&*extension.end()); + std::string end=filename.substr(filename.length()-extension.length(),extension.length()); return end==extension; }