mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
LibGUI+Userland: Propagate errors in Model::column_name()
This commit is contained in:
parent
94bcb5bea8
commit
f33824d2e9
73 changed files with 140 additions and 146 deletions
|
@ -30,11 +30,11 @@ public:
|
|||
virtual int row_count(GUI::ModelIndex const& = GUI::ModelIndex()) const override { return m_matches.size(); }
|
||||
virtual int column_count(GUI::ModelIndex const& = GUI::ModelIndex()) const override { return Column::__Count; }
|
||||
|
||||
virtual String column_name(int column) const override
|
||||
virtual ErrorOr<String> column_name(int column) const override
|
||||
{
|
||||
switch (column) {
|
||||
case Column::Filename:
|
||||
return "Filename"_string.release_value_but_fixme_should_propagate_errors();
|
||||
return TRY("Filename"_string);
|
||||
case Column::Text:
|
||||
return "Text"_short_string;
|
||||
case Column::Line:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue