1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:58:11 +00:00

Userland: Port Model::column_name() to String

This commit is contained in:
Karol Kosek 2023-05-14 19:02:08 +02:00 committed by Andreas Kling
parent 741f07dedf
commit 945f05ed76
70 changed files with 218 additions and 222 deletions

View file

@ -122,17 +122,17 @@ int SourceModel::row_count(GUI::ModelIndex const&) const
return m_source_lines.size();
}
DeprecatedString SourceModel::column_name(int column) const
String SourceModel::column_name(int column) const
{
switch (column) {
case Column::SampleCount:
return m_profile.show_percentages() ? "% Samples" : "# Samples";
return m_profile.show_percentages() ? "% Samples"_string.release_value_but_fixme_should_propagate_errors() : "# Samples"_string.release_value_but_fixme_should_propagate_errors();
case Column::SourceCode:
return "Source Code";
return "Source Code"_string.release_value_but_fixme_should_propagate_errors();
case Column::Location:
return "Location";
return "Location"_string.release_value_but_fixme_should_propagate_errors();
case Column::LineNumber:
return "Line";
return "Line"_short_string;
default:
VERIFY_NOT_REACHED();
return {};