mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Remove some format rule (#10919)
* remove some rules * format all codes with new format rule
This commit is contained in:
@@ -46,7 +46,7 @@ void getTextInputCallback() {
|
||||
return;
|
||||
}
|
||||
|
||||
auto * global = se::ScriptEngine::getInstance()->getGlobalObject();
|
||||
auto *global = se::ScriptEngine::getInstance()->getGlobalObject();
|
||||
se::Value jsbVal;
|
||||
if (global->getProperty("jsb", &jsbVal) && jsbVal.isObject()) {
|
||||
jsbVal.toObject()->getProperty("onTextInput", &textInputCallback);
|
||||
@@ -61,7 +61,7 @@ void callJSFunc(const ccstd::string &type, const ccstd::string &text) {
|
||||
getTextInputCallback();
|
||||
|
||||
se::AutoHandleScope scope;
|
||||
se::ValueArray args;
|
||||
se::ValueArray args;
|
||||
args.push_back(se::Value(type));
|
||||
args.push_back(se::Value(text));
|
||||
textInputCallback.toObject()->call(args, nullptr);
|
||||
|
||||
Reference in New Issue
Block a user