From c81b38c52db30e488960163c80cc48562c42edc7 Mon Sep 17 00:00:00 2001 From: halx99 Date: Thu, 9 Jun 2022 08:51:15 +0000 Subject: [PATCH] Committing genbindings changes [skip ci] --- extensions/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp index 685ecfb439..3c33dcb237 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp @@ -32895,8 +32895,8 @@ int lua_cocos2dx_FileUtils_getNewFilename(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getNewFilename'", nullptr); return 0; } - std::string ret = cobj->getNewFilename(arg0); - lua_pushlstring(tolua_S,ret.c_str(),ret.length()); + std::string_view ret = cobj->getNewFilename(arg0); + lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FileUtils:getNewFilename",argc, 1);