mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:32:46 +00:00 
			
		
		
		
	LibCore: Move Stream-based file into the Core namespace
				
					
				
			This commit is contained in:
		
							parent
							
								
									a96339b72b
								
							
						
					
					
						commit
						606a3982f3
					
				
					 218 changed files with 748 additions and 643 deletions
				
			
		|  | @ -8,6 +8,7 @@ | |||
| 
 | ||||
| #include "KeyboardMapperWidget.h" | ||||
| #include "KeyPositions.h" | ||||
| #include <LibCore/File.h> | ||||
| #include <LibCore/Stream.h> | ||||
| #include <LibGUI/BoxLayout.h> | ||||
| #include <LibGUI/InputBox.h> | ||||
|  | @ -191,7 +192,7 @@ ErrorOr<void> KeyboardMapperWidget::save_to_file(StringView filename) | |||
| 
 | ||||
|     // Write to file.
 | ||||
|     DeprecatedString file_content = map_json.to_deprecated_string(); | ||||
|     auto file = TRY(Core::Stream::File::open(filename, Core::Stream::OpenMode::Write)); | ||||
|     auto file = TRY(Core::File::open(filename, Core::File::OpenMode::Write)); | ||||
|     TRY(file->write(file_content.bytes())); | ||||
|     file->close(); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Schumacher
						Tim Schumacher