Fix clang-tidy and lint travis checks

master
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);

View File

@ -349,6 +349,7 @@ src/script/cpp_api/s_server.h
src/script/lua_api/l_areastore.cpp
src/script/lua_api/l_base.cpp
src/script/lua_api/l_base.h
src/script/lua_api/l_client.cpp
src/script/lua_api/l_craft.cpp
src/script/lua_api/l_craft.h
src/script/lua_api/l_env.cpp