mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
Userland: Port Model::column_name() to String
This commit is contained in:
committed by
Andreas Kling
parent
741f07dedf
commit
945f05ed76
@@ -45,17 +45,17 @@ int RunningProcessesModel::column_count(const GUI::ModelIndex&) const
|
||||
return Column::__Count;
|
||||
}
|
||||
|
||||
DeprecatedString RunningProcessesModel::column_name(int column_index) const
|
||||
String RunningProcessesModel::column_name(int column_index) const
|
||||
{
|
||||
switch (column_index) {
|
||||
case Column::Icon:
|
||||
return {};
|
||||
case Column::PID:
|
||||
return "PID";
|
||||
return "PID"_short_string;
|
||||
case Column::UID:
|
||||
return "UID";
|
||||
return "UID"_short_string;
|
||||
case Column::Name:
|
||||
return "Name";
|
||||
return "Name"_short_string;
|
||||
}
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user