mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
AK+Everywhere: Rename String to DeprecatedString
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
This commit is contained in:
parent
f74251606d
commit
6e19ab2bbc
2006 changed files with 11635 additions and 11636 deletions
|
@ -72,7 +72,7 @@ int ProfileModel::column_count(GUI::ModelIndex const&) const
|
|||
return Column::__Count;
|
||||
}
|
||||
|
||||
String ProfileModel::column_name(int column) const
|
||||
DeprecatedString ProfileModel::column_name(int column) const
|
||||
{
|
||||
switch (column) {
|
||||
case Column::SampleCount:
|
||||
|
@ -117,7 +117,7 @@ GUI::Variant ProfileModel::data(GUI::ModelIndex const& index, GUI::ModelRole rol
|
|||
* 100.f
|
||||
/ static_cast<float>(m_profile.filtered_event_indices().size())
|
||||
* percent_digits_rounding);
|
||||
return String::formatted(
|
||||
return DeprecatedString::formatted(
|
||||
"{}.{:02}",
|
||||
percentage_full_precision / percent_digits_rounding,
|
||||
percentage_full_precision % percent_digits_rounding);
|
||||
|
@ -136,7 +136,7 @@ GUI::Variant ProfileModel::data(GUI::ModelIndex const& index, GUI::ModelRole rol
|
|||
return node->object_name();
|
||||
if (index.column() == Column::StackFrame) {
|
||||
if (node->is_root()) {
|
||||
return String::formatted("{} ({})", node->process().basename, node->process().pid);
|
||||
return DeprecatedString::formatted("{} ({})", node->process().basename, node->process().pid);
|
||||
}
|
||||
return node->symbol();
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ GUI::Variant ProfileModel::data(GUI::ModelIndex const& index, GUI::ModelRole rol
|
|||
auto const* library = node->process().library_metadata.library_containing(node->address());
|
||||
if (!library)
|
||||
return "";
|
||||
return String::formatted("{:p} (offset {:p})", node->address(), node->address() - library->base);
|
||||
return DeprecatedString::formatted("{:p} (offset {:p})", node->address(), node->address() - library->base);
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue