forked from qt-creator/qt-creator
Fix build with Qt6
Some type issues (int vs long long, int vs QFont::Weight), no "midRef" any more. Task-number: QTCREATORBUG-24098 Change-Id: Id39f70edc14832baaeebb2572bca5491deadaf1d Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
@@ -291,8 +291,9 @@ void ActivationSequenceContextProcessor::goBackToStartOfName()
|
||||
const int tokIndex = CPlusPlus::SimpleLexer::tokenAt(tokens, tokenPos);
|
||||
if (tokIndex > -1 && tokens.at(tokIndex).isStringLiteral()) {
|
||||
const int tokenStart = tokens.at(tokIndex).utf16charOffset;
|
||||
const int slashIndex = m_textCursor.block().text().lastIndexOf('/',
|
||||
std::min(m_textCursor.positionInBlock(), m_textCursor.block().text().length() - 1));
|
||||
const int slashIndex = m_textCursor.block().text().lastIndexOf(
|
||||
'/',
|
||||
std::min(m_textCursor.positionInBlock(), int(m_textCursor.block().text().length() - 1)));
|
||||
m_startOfNamePosition = m_textCursor.block().position() + std::max(slashIndex, tokenStart)
|
||||
+ 1;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user