Fix clang-tidy and lint travis checks
authorsfan5 <sfan5@live.de>
Sat, 9 Nov 2019 20:22:06 +0000 (21:22 +0100)
committersfan5 <sfan5@live.de>
Mon, 11 Nov 2019 13:06:48 +0000 (14:06 +0100)
src/client/client.cpp
util/travis/clang-format-whitelist.txt

index 36d4f8df99d6b089cda24b4356f94738205d7fa5..5d4793c8afb1a6026d8a46d0fec160fcc0d4e47d 100644 (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);
 
index 466ffd7897a5b2f29dc4c50ce7e72cffdca5812b..30d1e9e1cf6762566fd8914a2fe4178d552a6abc 100644 (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