mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:02:45 +00:00 
			
		
		
		
	Everywhere: Run clang-format
This commit is contained in:
		
							parent
							
								
									0376c127f6
								
							
						
					
					
						commit
						086969277e
					
				
					 1665 changed files with 8479 additions and 8479 deletions
				
			
		|  | @ -15,7 +15,7 @@ namespace Kernel { | |||
| #define EBR_CHS_CONTAINER 0x05 | ||||
| #define EBR_LBA_CONTAINER 0x0F | ||||
| 
 | ||||
| Result<NonnullOwnPtr<MBRPartitionTable>, PartitionTable::Error> MBRPartitionTable::try_to_initialize(const StorageDevice& device) | ||||
| Result<NonnullOwnPtr<MBRPartitionTable>, PartitionTable::Error> MBRPartitionTable::try_to_initialize(StorageDevice const& device) | ||||
| { | ||||
|     auto table = adopt_nonnull_own_or_enomem(new (nothrow) MBRPartitionTable(device)).release_value_but_fixme_should_propagate_errors(); | ||||
|     if (table->contains_ebr()) | ||||
|  | @ -27,7 +27,7 @@ Result<NonnullOwnPtr<MBRPartitionTable>, PartitionTable::Error> MBRPartitionTabl | |||
|     return table; | ||||
| } | ||||
| 
 | ||||
| OwnPtr<MBRPartitionTable> MBRPartitionTable::try_to_initialize(const StorageDevice& device, u32 start_lba) | ||||
| OwnPtr<MBRPartitionTable> MBRPartitionTable::try_to_initialize(StorageDevice const& device, u32 start_lba) | ||||
| { | ||||
|     auto table = adopt_nonnull_own_or_enomem(new (nothrow) MBRPartitionTable(device, start_lba)).release_value_but_fixme_should_propagate_errors(); | ||||
|     if (!table->is_valid()) | ||||
|  | @ -44,7 +44,7 @@ bool MBRPartitionTable::read_boot_record() | |||
|     return m_header_valid; | ||||
| } | ||||
| 
 | ||||
| MBRPartitionTable::MBRPartitionTable(const StorageDevice& device, u32 start_lba) | ||||
| MBRPartitionTable::MBRPartitionTable(StorageDevice const& device, u32 start_lba) | ||||
|     : PartitionTable(device) | ||||
|     , m_start_lba(start_lba) | ||||
|     , m_cached_header(ByteBuffer::create_zeroed(m_device->block_size()).release_value_but_fixme_should_propagate_errors()) // FIXME: Do something sensible if this fails because of OOM.
 | ||||
|  | @ -65,7 +65,7 @@ MBRPartitionTable::MBRPartitionTable(const StorageDevice& device, u32 start_lba) | |||
|     m_valid = true; | ||||
| } | ||||
| 
 | ||||
| MBRPartitionTable::MBRPartitionTable(const StorageDevice& device) | ||||
| MBRPartitionTable::MBRPartitionTable(StorageDevice const& device) | ||||
|     : PartitionTable(device) | ||||
|     , m_start_lba(0) | ||||
|     , m_cached_header(ByteBuffer::create_zeroed(m_device->block_size()).release_value_but_fixme_should_propagate_errors()) // FIXME: Do something sensible if this fails because of OOM.
 | ||||
|  | @ -86,9 +86,9 @@ MBRPartitionTable::MBRPartitionTable(const StorageDevice& device) | |||
| 
 | ||||
| MBRPartitionTable::~MBRPartitionTable() = default; | ||||
| 
 | ||||
| const MBRPartitionTable::Header& MBRPartitionTable::header() const | ||||
| MBRPartitionTable::Header const& MBRPartitionTable::header() const | ||||
| { | ||||
|     return *(const MBRPartitionTable::Header*)m_cached_header.data(); | ||||
|     return *(MBRPartitionTable::Header const*)m_cached_header.data(); | ||||
| } | ||||
| 
 | ||||
| bool MBRPartitionTable::initialize() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Idan Horowitz
						Idan Horowitz