Refactored code to use {} initialization instead of dynamic allocation with 'new' in disk manager class

This commit is contained in:
Alex
2023-04-10 06:24:44 +03:00
parent 41dafe32fb
commit 78f4bdd6a8
2 changed files with 45 additions and 45 deletions

View File

@ -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);