From e4527f7f39a87aa92726d3151798aee3eeadfc57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Tue, 6 Apr 2021 13:56:58 +0800 Subject: [PATCH] optimize --- doric-Qt/doric/engine/v8/V8Executor.cpp | 2 +- doric-Qt/doric/qml.qrc | 2 +- doric-Qt/doric/{ => resources}/test-layout.qml | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename doric-Qt/doric/{ => resources}/test-layout.qml (100%) diff --git a/doric-Qt/doric/engine/v8/V8Executor.cpp b/doric-Qt/doric/engine/v8/V8Executor.cpp index deeb5c45..046a4a83 100644 --- a/doric-Qt/doric/engine/v8/V8Executor.cpp +++ b/doric-Qt/doric/engine/v8/V8Executor.cpp @@ -79,7 +79,7 @@ void V8Executor::invokeObject(QString objectName, QString functionName, int valueSize = arguments.size(); auto js_values = new v8::Local[valueSize]; - for (uint32_t i = 0; i < valueSize; i++) { + for (int i = 0; i < valueSize; i++) { js_values[i] = Variant2JS(arguments.at(i)); } v8::Local value = invokeMethod(objectName.toUtf8().constData(), diff --git a/doric-Qt/doric/qml.qrc b/doric-Qt/doric/qml.qrc index 4213423f..2fded710 100644 --- a/doric-Qt/doric/qml.qrc +++ b/doric-Qt/doric/qml.qrc @@ -23,6 +23,6 @@ resources/text.qml resources/util.mjs resources/gravity.mjs - test-layout.qml + resources/test-layout.qml diff --git a/doric-Qt/doric/test-layout.qml b/doric-Qt/doric/resources/test-layout.qml similarity index 100% rename from doric-Qt/doric/test-layout.qml rename to doric-Qt/doric/resources/test-layout.qml