mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-21 23:45:34 +00:00
refactor: remove arrayWithLength, replace with std::vector
Eliminates the custom arrayWithLength<T> wrapper and all typedefs, replacing with std::vector<T> directly.
This commit is contained in:
@@ -819,7 +819,7 @@ void ConsoleSaveFileOriginal::ConvertRegionFile(File sourceFile) {
|
||||
sourceRegionFile.getChunkDataInputStream(x, z);
|
||||
|
||||
if (dis) {
|
||||
byteArray inData(1024 * 1024);
|
||||
std::vector<uint8_t> inData(1024 * 1024);
|
||||
int read = dis->read(inData);
|
||||
dis->close();
|
||||
dis->deleteChildStream();
|
||||
@@ -832,7 +832,7 @@ void ConsoleSaveFileOriginal::ConvertRegionFile(File sourceFile) {
|
||||
dos->close();
|
||||
dos->deleteChildStream();
|
||||
delete dos;
|
||||
delete inData.data;
|
||||
// vector cleans up automatically
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user