mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +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
				
			
		|  | @ -39,11 +39,11 @@ public: | |||
|     virtual int row_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override { return m_matches.size(); } | ||||
|     virtual int column_count(const GUI::ModelIndex& = 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::Location: | ||||
|             return "#"_short_string; | ||||
|         case Column::MatchedText: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins