mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:52:45 +00:00 
			
		
		
		
	FileDescription: Disallow construction with a null File
It's not valid for a FileDescription to not have a file, so let's disallow it by taking a File& (or FIFO&) in the constructor.
This commit is contained in:
		
							parent
							
								
									0dc05a33c1
								
							
						
					
					
						commit
						752de9cd27
					
				
					 6 changed files with 18 additions and 19 deletions
				
			
		|  | @ -12,7 +12,7 @@ File::~File() | |||
| KResultOr<NonnullRefPtr<FileDescription>> File::open(int options) | ||||
| { | ||||
|     UNUSED_PARAM(options); | ||||
|     return FileDescription::create(this); | ||||
|     return FileDescription::create(*this); | ||||
| } | ||||
| 
 | ||||
| void File::close() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling