diff --git a/cocos/scripting/lua-bindings/auto/api/Button.lua b/cocos/scripting/lua-bindings/auto/api/Button.lua index 2885ca84b7..ad12d1df66 100644 --- a/cocos/scripting/lua-bindings/auto/api/Button.lua +++ b/cocos/scripting/lua-bindings/auto/api/Button.lua @@ -36,7 +36,7 @@ -- @return Label#Label ret (return value: cc.Label) -------------------------------- --- brief Return a zoom scale
+-- brief Return a zoom scale
-- return the zoom scale in float
-- since v3.3 -- @function [parent=#Button] getZoomScale diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp index 04d1dec76b..27a9e3ea5a 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp @@ -5871,7 +5871,7 @@ int lua_cocos2dx_ui_Button_getTitleText(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getTitleText'", nullptr); return 0; } - const std::string& ret = cobj->getTitleText(); + const std::string ret = cobj->getTitleText(); tolua_pushcppstring(tolua_S,ret); return 1; } @@ -6994,7 +6994,7 @@ int lua_cocos2dx_ui_Button_getTitleFontName(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getTitleFontName'", nullptr); return 0; } - const std::string& ret = cobj->getTitleFontName(); + const std::string ret = cobj->getTitleFontName(); tolua_pushcppstring(tolua_S,ret); return 1; }