mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Userland: Port Model::column_name() to String
This commit is contained in:
committed by
Andreas Kling
parent
741f07dedf
commit
945f05ed76
@@ -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 {};
|
||||
|
||||
Reference in New Issue
Block a user