getting rid of tons of warnings

This commit is contained in:
confuseh
2017-01-18 13:48:42 +00:00
parent 528f539fca
commit 5eb7349b57
13 changed files with 98 additions and 69 deletions
+2 -2
View File
@@ -464,7 +464,7 @@ Message::layout(int width, bool enableEmoteMargins)
bool first = true;
auto alignParts = [&lineStart, &lineHeight, &parts, this] {
for (int i = lineStart; i < parts->size(); i++) {
for (size_t i = lineStart; i < parts->size(); i++) {
WordPart &wordPart2 = parts->at(i);
wordPart2.setY(wordPart2.getY() + lineHeight);
@@ -510,7 +510,7 @@ Message::layout(int width, bool enableEmoteMargins)
charWidths.reserve(text.length());
for (int i = 0; i < text.length(); i++) {
charWidths.push_back(metrics.charWidth(text, i));
charWidths.push_back(metrics.width(text, i));
}
}