mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:32:43 +00:00 
			
		
		
		
	Userland: Use non-fallible EventReceiver::add() where possible
				
					
				
			This commit is contained in:
		
							parent
							
								
									707ca984bd
								
							
						
					
					
						commit
						b4e134cb52
					
				
					 54 changed files with 934 additions and 934 deletions
				
			
		|  | @ -53,7 +53,7 @@ ErrorOr<NonnullRefPtr<ProcessMemoryMapWidget>> ProcessMemoryMapWidget::try_creat | |||
| { | ||||
|     auto widget = TRY(adopt_nonnull_ref_or_enomem(new (nothrow) ProcessMemoryMapWidget())); | ||||
|     widget->set_layout<GUI::VerticalBoxLayout>(4); | ||||
|     widget->m_table_view = TRY(widget->try_add<GUI::TableView>()); | ||||
|     widget->m_table_view = widget->add<GUI::TableView>(); | ||||
| 
 | ||||
|     Vector<GUI::JsonArrayModel::FieldSpec> pid_vm_fields; | ||||
|     TRY(pid_vm_fields.try_empend( | ||||
|  | @ -110,7 +110,7 @@ ErrorOr<NonnullRefPtr<ProcessMemoryMapWidget>> ProcessMemoryMapWidget::try_creat | |||
|     widget->m_table_view->set_column_painting_delegate(7, TRY(try_make<PagemapPaintingDelegate>())); | ||||
| 
 | ||||
|     widget->m_table_view->set_key_column_and_sort_order(0, GUI::SortOrder::Ascending); | ||||
|     widget->m_timer = TRY(widget->try_add<Core::Timer>(1000, [widget] { widget->refresh(); })); | ||||
|     widget->m_timer = widget->add<Core::Timer>(1000, [widget] { widget->refresh(); }); | ||||
|     widget->m_timer->start(); | ||||
| 
 | ||||
|     return widget; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Ledbetter
						Tim Ledbetter