Codechange: Replace SmallVector::Length() with std::vector::size()
This commit is contained in:
@@ -509,7 +509,7 @@ int DrawString(int left, int right, int top, const char *str, TextColour colour,
|
||||
}
|
||||
|
||||
Layouter layout(str, INT32_MAX, colour, fontsize);
|
||||
if (layout.Length() == 0) return 0;
|
||||
if (layout.size() == 0) return 0;
|
||||
|
||||
return DrawLayoutLine(*layout.Begin(), top, left, right, align, underline, true);
|
||||
}
|
||||
@@ -574,7 +574,7 @@ int GetStringLineCount(StringID str, int maxw)
|
||||
GetString(buffer, str, lastof(buffer));
|
||||
|
||||
Layouter layout(buffer, maxw);
|
||||
return layout.Length();
|
||||
return layout.size();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user