mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
Refactored code to use {} initialization instead of dynamic allocation with 'new' in disk manager class
This commit is contained in:
@ -138,7 +138,7 @@ namespace Disk
|
||||
uint8_t *Buffer = nullptr;
|
||||
PartitionTable Table;
|
||||
PartitionStyle Style = PartitionStyle::Unknown;
|
||||
std::vector<Partition *> Partitions;
|
||||
std::vector<Partition> Partitions;
|
||||
bool MechanicalDisk = false;
|
||||
size_t UniqueIdentifier = 0xdeadbeef;
|
||||
|
||||
@ -170,7 +170,7 @@ namespace Disk
|
||||
unsigned char AvailablePorts = 0;
|
||||
int BytesPerSector = 0;
|
||||
|
||||
std::vector<Drive *> drives;
|
||||
std::vector<Drive> drives;
|
||||
|
||||
public:
|
||||
void FetchDisks(unsigned long DriverUID);
|
||||
|
Reference in New Issue
Block a user