1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix clang-tidy and lint travis checks

This commit is contained in:
sfan5 2019-11-09 21:22:06 +01:00
parent c44318a253
commit 02111e4961
2 changed files with 2 additions and 1 deletions

View file

@ -1913,7 +1913,7 @@ const std::string* Client::getModFile(std::string filename)
if (pos == std::string::npos)
return nullptr;
pos++;
auto pos2 = filename.find_first_not_of("/", pos);
auto pos2 = filename.find_first_not_of('/', pos);
if (pos2 > pos)
filename.erase(pos, pos2 - pos);