Skip to content

Commit cef79ec

Browse files
committed
Fix Ravi issue
1 parent bc925b1 commit cef79ec

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎Source/LuaBridge/detail/CFunctions.h‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -564,11 +564,7 @@ inline int newindex_metamethod(lua_State* L)
564564
*/
565565
inline int read_only_error(lua_State* L)
566566
{
567-
std::stringstream ss;
568-
569-
ss << "'" << lua_tostring(L, lua_upvalueindex(1)) << "' is read-only";
570-
571-
raise_lua_error(L, "%s", ss.str().c_str());
567+
raise_lua_error(L, "'%s' is read-only", lua_tostring(L, lua_upvalueindex(1)));
572568

573569
return 0;
574570
}

0 commit comments

Comments
 (0)