Using single quote for one character parameter in find_last_of method call

pull/1274/head
Andrej 2017-05-16 21:56:49 +02:00
parent c3974512e4
commit 2b89a3cffc
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ std::string ObjExporter :: GetMaterialLibName()
std::string ObjExporter :: GetMaterialLibFileName() std::string ObjExporter :: GetMaterialLibFileName()
{ {
// Remove existing .obj file extention so that the final material file name will be fileName.mtl and not fileName.obj.mtl // Remove existing .obj file extention so that the final material file name will be fileName.mtl and not fileName.obj.mtl
size_t lastdot = filename.find_last_of("."); size_t lastdot = filename.find_last_of('.');
if (lastdot != std::string::npos) if (lastdot != std::string::npos)
filename = filename.substr(0, lastdot); filename = filename.substr(0, lastdot);