Commit 22539e58 authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

explicit int conversion

parent af7d5cd4
Pipeline #223276 failed with stage
in 4 minutes and 29 seconds
......@@ -230,7 +230,7 @@ public:
if (lastSlash != -1) {
QTextCharFormat fmt;
fmt.setFontWeight(QFont::Bold);
formats.append({lastSlash + 1, text.length() - (lastSlash + 1), fmt});
formats.append({lastSlash + 1, int(text.length() - (lastSlash + 1)), fmt});
}
} else {
// mind translation; let's hope/assume the colon survived
......@@ -242,7 +242,7 @@ public:
QTextCharFormat fmt;
fmt.setFont(m_monoFont);
int codeStart = nextColon + 1;
formats.append({codeStart, text.length() - codeStart, fmt});
formats.append({codeStart, int(text.length() - codeStart), fmt});
}
}
......
......@@ -102,7 +102,7 @@ QVector<KateSearchMatch> SearchDiskFiles::searchSingleLineRegExp(QFile &file)
match.captured(),
postContext,
QString(),
KTextEditor::Range{currentLineNumber, column, currentLineNumber, column + match.capturedLength()},
KTextEditor::Range{currentLineNumber, column, currentLineNumber, int(column + match.capturedLength())},
true,
true});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment