optimize
This commit is contained in:
parent
1ef0a7720a
commit
e4527f7f39
@ -79,7 +79,7 @@ void V8Executor::invokeObject(QString objectName, QString functionName,
|
|||||||
int valueSize = arguments.size();
|
int valueSize = arguments.size();
|
||||||
|
|
||||||
auto js_values = new v8::Local<v8::Value>[valueSize];
|
auto js_values = new v8::Local<v8::Value>[valueSize];
|
||||||
for (uint32_t i = 0; i < valueSize; i++) {
|
for (int i = 0; i < valueSize; i++) {
|
||||||
js_values[i] = Variant2JS(arguments.at(i));
|
js_values[i] = Variant2JS(arguments.at(i));
|
||||||
}
|
}
|
||||||
v8::Local<v8::Value> value = invokeMethod(objectName.toUtf8().constData(),
|
v8::Local<v8::Value> value = invokeMethod(objectName.toUtf8().constData(),
|
||||||
|
@ -23,6 +23,6 @@
|
|||||||
<file alias="text.qml">resources/text.qml</file>
|
<file alias="text.qml">resources/text.qml</file>
|
||||||
<file alias="util.mjs">resources/util.mjs</file>
|
<file alias="util.mjs">resources/util.mjs</file>
|
||||||
<file alias="gravity.mjs">resources/gravity.mjs</file>
|
<file alias="gravity.mjs">resources/gravity.mjs</file>
|
||||||
<file>test-layout.qml</file>
|
<file alias="test-layout.qml">resources/test-layout.qml</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
Reference in New Issue
Block a user