mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
Everywhere: Rename to_{string => deprecated_string}() where applicable
This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO.
This commit is contained in:
parent
6e19ab2bbc
commit
57dc179b1f
597 changed files with 1973 additions and 1972 deletions
|
@ -113,7 +113,7 @@ ErrorOr<void> ConfigFile::reparse()
|
|||
builder.append(line[i]);
|
||||
++i;
|
||||
}
|
||||
current_group = &m_groups.ensure(builder.to_string());
|
||||
current_group = &m_groups.ensure(builder.to_deprecated_string());
|
||||
break;
|
||||
}
|
||||
default: { // Start of key
|
||||
|
@ -132,8 +132,8 @@ ErrorOr<void> ConfigFile::reparse()
|
|||
// We're not in a group yet, create one with the name ""...
|
||||
current_group = &m_groups.ensure("");
|
||||
}
|
||||
auto value_string = value_builder.to_string();
|
||||
current_group->set(key_builder.to_string(), value_string.trim_whitespace(TrimMode::Right));
|
||||
auto value_string = value_builder.to_deprecated_string();
|
||||
current_group->set(key_builder.to_deprecated_string(), value_string.trim_whitespace(TrimMode::Right));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue