From 5c8be51a0ed73d6e90a3f4247bd52364c04a70e0 Mon Sep 17 00:00:00 2001 From: Olanti Date: Tue, 13 Dec 2022 02:27:21 +0300 Subject: [PATCH] Fix some clang lints --- src/catalua_bindings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/catalua_bindings.cpp b/src/catalua_bindings.cpp index 0fc9acf7c9e5..d118eb67797b 100644 --- a/src/catalua_bindings.cpp +++ b/src/catalua_bindings.cpp @@ -54,7 +54,7 @@ sol::table make_readonly_table( sol::state &lua, sol::table read_from, { sol::table ret = lua.create_table(); - std::string copy = error_msg; + const std::string © = error_msg; read_from[sol::meta_function::index] = read_from; read_from[sol::meta_function::new_index] = [copy]( sol::this_state L ) { return luaL_error( L.lua_state(), copy.c_str() ); @@ -206,10 +206,10 @@ template <> struct is_container : std::false_type {}; template <> struct is_container : std::false_type {}; -} +} // namespace sol struct item_stack_lua_it_state { - typedef item_stack::iterator it_t; + using it_t = item_stack::iterator; it_t it; it_t last;