mirror of https://github.com/CGAL/cgal
Fix VC++ /W4 warning
This commit is contained in:
parent
33fd57c0f1
commit
d721a0c15b
|
|
@ -12,7 +12,7 @@
|
|||
//
|
||||
|
||||
#include <string>
|
||||
|
||||
#include <CGAL/Surface_mesh.h>
|
||||
#include <CGAL/config.h>
|
||||
|
||||
#if defined(BOOST_MSVC)
|
||||
|
|
|
|||
|
|
@ -54,7 +54,10 @@ static inline std::string get_file_extension(const std::string fname)
|
|||
return std::string();
|
||||
|
||||
std::string ext = fname.substr(dot+1, fname.length() - dot - 1);
|
||||
std::transform(ext.begin(), ext.end(), ext.begin(), ::tolower);
|
||||
std::transform(ext.begin(), ext.end(), ext.begin(),
|
||||
[](char c) {
|
||||
return static_cast<char>(std::tolower(static_cast<unsigned char>(c)));
|
||||
});
|
||||
|
||||
return ext;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue