mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 05:52:53 +00:00
Userland: Port Model::column_name()
to String
This commit is contained in:
parent
741f07dedf
commit
945f05ed76
Notes:
sideshowbarker
2024-07-17 02:39:10 +09:00
Author: https://github.com/krkk
Commit: 945f05ed76
Pull-request: https://github.com/SerenityOS/serenity/pull/18836
70 changed files with 218 additions and 222 deletions
|
@ -30,15 +30,15 @@ public:
|
|||
int row_count(GUI::ModelIndex const&) const override { return m_symbols.size(); };
|
||||
bool is_column_sortable(int) const override { return false; }
|
||||
|
||||
DeprecatedString column_name(int column) const override
|
||||
String column_name(int column) const override
|
||||
{
|
||||
switch (column) {
|
||||
case Column::Address:
|
||||
return "Address";
|
||||
return "Address"_short_string;
|
||||
case Column::Object:
|
||||
return "Object";
|
||||
return "Object"_short_string;
|
||||
case Column::Symbol:
|
||||
return "Symbol";
|
||||
return "Symbol"_short_string;
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue