From: sfan5 Date: Sat, 9 Nov 2019 20:22:06 +0000 (+0100) Subject: Fix clang-tidy and lint travis checks X-Git-Tag: 5.2.0~284 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=02111e49610dfadae47c79eb1cb07bf935f2d944;p=oweals%2Fminetest.git Fix clang-tidy and lint travis checks --- diff --git a/src/client/client.cpp b/src/client/client.cpp index 36d4f8df9..5d4793c8a 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -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); diff --git a/util/travis/clang-format-whitelist.txt b/util/travis/clang-format-whitelist.txt index 466ffd789..30d1e9e1c 100644 --- a/util/travis/clang-format-whitelist.txt +++ b/util/travis/clang-format-whitelist.txt @@ -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