ksys/res: Fix EntryFactory using value initialisation when new'ing

This causes an extra memset to be issued in some cases.
This commit is contained in:
Léo Lam 2021-04-23 12:49:51 +02:00
parent 2015796b80
commit 52196c4b75
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ public:
sead::DirectResource* newResource_(sead::Heap* heap_, s32 alignment) override {
sead::Heap* heap = util::getHeapOrCurrentHeap(heap_);
sead::ScopedCurrentHeapSetter setter{heap};
return new (heap, alignment, std::nothrow_t{}) T{};
return new (heap, alignment, std::nothrow_t{}) T;
}
protected: