mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:12:43 +00:00 
			
		
		
		
	AK+WindowServer: Remove did_construct() framework used only once
There is also make_ref_counted(), which does not call did_construct(), so the method was not guaranteed to be run. Since there is only a single user, and `WindowServer::Window` is a final class anyway (so there is no need to separate the constructor and post-constructor phases), let's get rid of this concept. (The following commits reduce the opportunities to call make_ref_counted, but still.)
This commit is contained in:
		
							parent
							
								
									68c8d23e39
								
							
						
					
					
						commit
						2e6bb987a3
					
				
					 3 changed files with 1 additions and 7 deletions
				
			
		|  | @ -85,6 +85,7 @@ Window::Window(Core::Object& parent, WindowType type) | |||
|         m_minimum_size = s_default_normal_minimum_size; | ||||
| 
 | ||||
|     WindowManager::the().add_window(*this); | ||||
|     frame().window_was_constructed({}); | ||||
| } | ||||
| 
 | ||||
| Window::Window(ClientConnection& client, WindowType window_type, int window_id, bool modal, bool minimizable, bool closeable, bool frameless, bool resizable, bool fullscreen, bool accessory, Window* parent_window) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ben Wiederhake
						Ben Wiederhake