mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-12 18:46:08 +00:00
Refactor new usage to rs_new
Former-commit-id: cbf7b415ed96fe9ad0a0a9a11cc1ffb18b5c07da
This commit is contained in:
@@ -15,7 +15,7 @@ struct rmemory_allocator {
|
||||
if (size == 0) {
|
||||
out = nullptr;
|
||||
} else {
|
||||
out = reinterpret_cast< T* >(NEW uchar[size]);
|
||||
out = reinterpret_cast< T* >(rs_new uchar[size]);
|
||||
}
|
||||
}
|
||||
// TODO: this fixes a regswap in vector::reserve
|
||||
@@ -25,7 +25,7 @@ struct rmemory_allocator {
|
||||
if (size == 0) {
|
||||
return nullptr;
|
||||
} else {
|
||||
return reinterpret_cast< T* >(NEW uchar[size]);
|
||||
return reinterpret_cast< T* >(rs_new uchar[size]);
|
||||
}
|
||||
}
|
||||
template < typename T >
|
||||
|
||||
Reference in New Issue
Block a user