diff --git a/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp b/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp index 6ddd7040ff..08d035a685 100644 --- a/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp +++ b/cocos/scripting/js-bindings/auto/jsb_cocos2dx_auto.cpp @@ -19213,7 +19213,7 @@ bool js_cocos2dx_FileUtils_getDefaultResourceRootPath(JSContext *cx, uint32_t ar cocos2d::FileUtils* cobj = (cocos2d::FileUtils *)(proxy ? proxy->ptr : NULL); JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_FileUtils_getDefaultResourceRootPath : Invalid Native Object"); if (argc == 0) { - const std::string& ret = cobj->getDefaultResourceRootPath(); + const std::string ret = cobj->getDefaultResourceRootPath(); JS::RootedValue jsret(cx); jsret = std_string_to_jsval(cx, ret); args.rval().set(jsret); @@ -19291,7 +19291,7 @@ bool js_cocos2dx_FileUtils_getSearchPaths(JSContext *cx, uint32_t argc, jsval *v cocos2d::FileUtils* cobj = (cocos2d::FileUtils *)(proxy ? proxy->ptr : NULL); JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_FileUtils_getSearchPaths : Invalid Native Object"); if (argc == 0) { - const std::vector& ret = cobj->getSearchPaths(); + std::vector ret = cobj->getSearchPaths(); JS::RootedValue jsret(cx); jsret = std_vector_string_to_jsval(cx, ret); args.rval().set(jsret); @@ -19333,7 +19333,7 @@ bool js_cocos2dx_FileUtils_getOriginalSearchPaths(JSContext *cx, uint32_t argc, cocos2d::FileUtils* cobj = (cocos2d::FileUtils *)(proxy ? proxy->ptr : NULL); JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_FileUtils_getOriginalSearchPaths : Invalid Native Object"); if (argc == 0) { - const std::vector& ret = cobj->getOriginalSearchPaths(); + std::vector ret = cobj->getOriginalSearchPaths(); JS::RootedValue jsret(cx); jsret = std_vector_string_to_jsval(cx, ret); args.rval().set(jsret); @@ -20144,7 +20144,7 @@ bool js_cocos2dx_FileUtils_getSearchResolutionsOrder(JSContext *cx, uint32_t arg cocos2d::FileUtils* cobj = (cocos2d::FileUtils *)(proxy ? proxy->ptr : NULL); JSB_PRECONDITION2( cobj, cx, false, "js_cocos2dx_FileUtils_getSearchResolutionsOrder : Invalid Native Object"); if (argc == 0) { - const std::vector& ret = cobj->getSearchResolutionsOrder(); + std::vector ret = cobj->getSearchResolutionsOrder(); JS::RootedValue jsret(cx); jsret = std_vector_string_to_jsval(cx, ret); args.rval().set(jsret); diff --git a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp index efa5ba2c27..1a91a874b9 100644 --- a/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp +++ b/cocos/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp @@ -33300,7 +33300,7 @@ int lua_cocos2dx_FileUtils_getDefaultResourceRootPath(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getDefaultResourceRootPath'", nullptr); return 0; } - const std::string& ret = cobj->getDefaultResourceRootPath(); + const std::string ret = cobj->getDefaultResourceRootPath(); lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } @@ -33494,7 +33494,7 @@ int lua_cocos2dx_FileUtils_getSearchPaths(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getSearchPaths'", nullptr); return 0; } - const std::vector& ret = cobj->getSearchPaths(); + std::vector ret = cobj->getSearchPaths(); ccvector_std_string_to_luaval(tolua_S, ret); return 1; } @@ -33594,7 +33594,7 @@ int lua_cocos2dx_FileUtils_getOriginalSearchPaths(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getOriginalSearchPaths'", nullptr); return 0; } - const std::vector& ret = cobj->getOriginalSearchPaths(); + std::vector ret = cobj->getOriginalSearchPaths(); ccvector_std_string_to_luaval(tolua_S, ret); return 1; } @@ -34893,7 +34893,7 @@ int lua_cocos2dx_FileUtils_getSearchResolutionsOrder(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getSearchResolutionsOrder'", nullptr); return 0; } - const std::vector& ret = cobj->getSearchResolutionsOrder(); + std::vector ret = cobj->getSearchResolutionsOrder(); ccvector_std_string_to_luaval(tolua_S, ret); return 1; } diff --git a/templates/cocos2dx_files.json b/templates/cocos2dx_files.json index 81752e3e06..1fd1c2c1d2 100644 --- a/templates/cocos2dx_files.json +++ b/templates/cocos2dx_files.json @@ -3671,7 +3671,6 @@ "external/recast/proj.win10/librecast.vcxproj.filters", "external/recast/proj.win32/librecast.vcxproj", "external/recast/proj.win32/librecast.vcxproj.filters", - "external/sqlite3/Android.mk", "external/sqlite3/include/sqlite3.h", "external/sqlite3/include/sqlite3ext.h", "external/sqlite3/libraries/win10/arm/sqlite3.dll",