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:
Collin Kidder
2020-02-15 19:52:18 -05:00
parent d550fa79a0
commit e4a3854af4
21 changed files with 89 additions and 93 deletions
+2 -2
View File
@@ -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;
}