forked from qt-creator/qt-creator
SideDiffEditorWidget: Fix Clang semantic warnings
Change-Id: I0f92993aa6152836237f7429c66761c22692075d Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
aae3056b33
commit
5003f644ac
@@ -396,10 +396,10 @@ void SideDiffEditorWidget::paintSeparator(QPainter &painter,
|
||||
|
||||
const QString replacementText = " {" + foldReplacementText(block) + "}; ";
|
||||
const int replacementTextWidth = fontMetrics().width(replacementText) + 24;
|
||||
int x = replacementTextWidth + offset.x();
|
||||
int x = replacementTextWidth + int(offset.x());
|
||||
if (x < document()->documentMargin()
|
||||
|| !TextDocumentLayout::isFolded(block)) {
|
||||
x = document()->documentMargin();
|
||||
x = int(document()->documentMargin());
|
||||
}
|
||||
const QString elidedText = fontMetrics().elidedText(text,
|
||||
Qt::ElideRight,
|
||||
|
Reference in New Issue
Block a user