Skip to content

Commit

Permalink
Fix some clang lints
Browse files Browse the repository at this point in the history
  • Loading branch information
olanti-p committed Dec 13, 2022
1 parent 701f7b6 commit 5c8be51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/catalua_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 &copy = 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() );
Expand Down Expand Up @@ -206,10 +206,10 @@ template <>
struct is_container<item_stack> : std::false_type {};
template <>
struct is_container<map_stack> : 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;

Expand Down

0 comments on commit 5c8be51

Please sign in to comment.