mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 20:46:49 +08:00
Merge pull request #474 from araml/master
Fix ifs that were always true
This commit is contained in:
@@ -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 "";
|
||||
|
Reference in New Issue
Block a user