resolve ambiguous overload of QJSValue constructor#4294
Merged
uklotzde merged 1 commit intomixxxdj:mainfrom Sep 17, 2021
Merged
resolve ambiguous overload of QJSValue constructor#4294uklotzde merged 1 commit intomixxxdj:mainfrom
uklotzde merged 1 commit intomixxxdj:mainfrom
Conversation
required by Qt6
../src/controllers/scripting/legacy/controllerscriptenginelegacy.cpp: In member function ‘bool ControllerScriptEngineLegacy::handleIncomingData(const QByteArray&)’:
../src/controllers/scripting/legacy/controllerscriptenginelegacy.cpp:178:33: error: call of overloaded ‘QJSValue(qsizetype)’ is ambiguous
178 | args << QJSValue(data.size());
| ^
In file included from /usr/include/qt6/QtQml/qjsengine.h:48,
from /usr/include/qt6/QtQml/QJSEngine:1,
from ../src/controllers/scripting/legacy/controllerscriptenginelegacy.h:4,
from ../src/controllers/scripting/legacy/controllerscriptenginelegacy.cpp:1:
/usr/include/qt6/QtQml/qjsvalue.h:113:14: note: candidate: ‘QJSValue::QJSValue(QJSPrimitiveValue&&)’
113 | explicit QJSValue(QJSPrimitiveValue &&value);
| ^~~~~~~~
/usr/include/qt6/QtQml/qjsvalue.h:104:5: note: candidate: ‘QJSValue::QJSValue(double)’
104 | QJSValue(double value);
| ^~~~~~~~
/usr/include/qt6/QtQml/qjsvalue.h:103:5: note: candidate: ‘QJSValue::QJSValue(uint)’
103 | QJSValue(uint value);
| ^~~~~~~~
/usr/include/qt6/QtQml/qjsvalue.h:102:5: note: candidate: ‘QJSValue::QJSValue(int)’
102 | QJSValue(int value);
| ^~~~~~~~
/usr/include/qt6/QtQml/qjsvalue.h:101:5: note: candidate: ‘QJSValue::QJSValue(bool)’
101 | QJSValue(bool value);
| ^~~~~~~~
/usr/include/qt6/QtQml/qjsvalue.h:96:12: note: candidate: ‘QJSValue::QJSValue(QJSValue&&)’
96 | inline QJSValue(QJSValue && other) : d(other.d) { other.d = 0; }
| ^~~~~~~~
/usr/include/qt6/QtQml/qjsvalue.h:93:5: note: candidate: ‘QJSValue::QJSValue(const QJSValue&)’
93 | QJSValue(const QJSValue &other);
| ^~~~~~~~
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
required by Qt6