Many little changes to get rid of compile-time warnings.
There now should be no warnings when compiling on LINUX. YMMV elsewhere.
This commit is contained in:
+2
-2
@@ -997,11 +997,11 @@ void JSEdit::updateSidebar()
|
||||
int maxLines = blockCount();
|
||||
for (int number = 10; number < maxLines; number *= 10)
|
||||
++digits;
|
||||
sw += fontMetrics().width('w') * digits;
|
||||
sw += fontMetrics().horizontalAdvance('w') * digits;
|
||||
}
|
||||
if (d->codeFolding) {
|
||||
int fh = fontMetrics().lineSpacing();
|
||||
int fw = fontMetrics().width('w');
|
||||
int fw = fontMetrics().horizontalAdvance('w');
|
||||
d->sidebar->foldIndicatorWidth = qMax(fw, fh);
|
||||
sw += d->sidebar->foldIndicatorWidth;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user