Commit 42e78937 authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

explicit int conversion

parent b1c8ee6d
Pipeline #223278 failed with stage
in 3 minutes and 41 seconds
......@@ -75,7 +75,7 @@ public:
auto kind = symbol.kind;
QVector<QTextLayout::FormatRange> fmts;
auto colons = text.indexOf(QStringLiteral("::"));
int colons = text.indexOf(QStringLiteral("::"));
int i = 0;
// container name
if (colons != -1) {
......@@ -90,7 +90,7 @@ public:
QTextCharFormat f;
f.setForeground(colorForSymbolKind(kind));
f.setFont(monoFont);
fmts.append({i, text.length() - i, f});
fmts.append({i, int(text.length() - i), f});
}
// add file name to the text we are going to display
......@@ -102,7 +102,7 @@ public:
{
QTextCharFormat f;
f.setForeground(Qt::gray);
fmts.append({textLength, text.length() - textLength, f});
fmts.append({textLength, int(text.length() - textLength), f});
}
options.rect = textRect;
......
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