Skip to content

Commit

Permalink
Merge pull request #4294 from Be-ing/qjsvalue_size
Browse files Browse the repository at this point in the history
resolve ambiguous overload of QJSValue constructor
  • Loading branch information
uklotzde authored Sep 17, 2021
2 parents df1e179 + 7243aab commit c9711b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ bool ControllerScriptEngineLegacy::handleIncomingData(const QByteArray& data) {

QJSValueList args;
args << m_pJSEngine->toScriptValue(data);
args << QJSValue(data.size());
args << QJSValue(static_cast<uint>(data.size()));

for (const QJSValue& function : std::as_const(m_incomingDataFunctions)) {
ControllerScriptEngineBase::executeFunction(function, args);
Expand Down

0 comments on commit c9711b6

Please sign in to comment.