diff --git a/src/libs/qmljs/parser/qmljslexer.cpp b/src/libs/qmljs/parser/qmljslexer.cpp index c3645b94199..9c2dca28027 100644 --- a/src/libs/qmljs/parser/qmljslexer.cpp +++ b/src/libs/qmljs/parser/qmljslexer.cpp @@ -1018,7 +1018,8 @@ again: int Lexer::scanString(ScanStringMode mode) { - QChar quote = (mode == TemplateContinuation) ? QChar(TemplateHead) : QChar(mode); + char quoteChar = (mode == TemplateContinuation) ? TemplateHead : mode; + QChar quote(quoteChar); // we actually use T_STRING_LITERAL also for multiline strings, should we want to // change that we should set it to: // _state.tokenKind == T_PARTIAL_SINGLE_QUOTE_STRING_LITERAL || diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 804dbd407c2..a8b49c54b1f 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -658,7 +658,7 @@ static QString reformatCharacter(int code, int size, bool isSigned) QChar c; switch (size) { - case 1: c = QChar(uchar(code)); break; + case 1: c = QChar(char(code)); break; case 2: c = QChar(uint16_t(code)); break; case 4: c = QChar(uint32_t(code)); break; default: c = QChar(uint(code)); break;