diff options
-rw-r--r-- | src/client/client.cpp | 2 | ||||
-rw-r--r-- | util/travis/clang-format-whitelist.txt | 1 |
2 files changed, 2 insertions, 1 deletions
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 |