Merge pull request #474 from araml/master

Fix ifs that were always true
This commit is contained in:
Matthew Hill
2017-03-10 09:53:02 -05:00
committed by GitHub

View File

@@ -130,7 +130,7 @@ namespace alpr
size_t found;
found=file_path.find_last_of("/\\");
if (found >= 0)
if (found != std::string::npos)
return file_path.substr(found+1);
return "";
@@ -146,7 +146,7 @@ namespace alpr
found=file_path.find_last_of("/\\");
if (found >= 0)
if (found != std::string::npos)
return file_path.substr(0,found);
return "";