mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
AK: Use size_t for the length of strings
Using int was a mistake. This patch changes String, StringImpl, StringView and StringBuilder to use size_t instead of int for lengths. Obviously a lot of code needs to change as a result of this.
This commit is contained in:
@@ -68,7 +68,7 @@ int DOMTreeModel::column_count(const GModelIndex&) const
|
||||
static String with_whitespace_collapsed(const StringView& string)
|
||||
{
|
||||
StringBuilder builder;
|
||||
for (int i = 0; i < string.length(); ++i) {
|
||||
for (size_t i = 0; i < string.length(); ++i) {
|
||||
if (isspace(string[i])) {
|
||||
builder.append(' ');
|
||||
while (i < string.length()) {
|
||||
|
||||
Reference in New Issue
Block a user