Skip to content

Commit

Permalink
Update UAllocator.h
Browse files Browse the repository at this point in the history
  • Loading branch information
PolarLinda6 committed Aug 31, 2024
1 parent d45ebb7 commit cfc9569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UtilsCtrl/UAllocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class UAllocator : public CObject {
static T* safeMallocTemplateCObject(Args&&... args) {
T* result{};
while (!result) {
ptr = new(std::nothrow) T(std::forward<Args&&>(args)...);
result = new(std::nothrow) T(std::forward<Args&&>(args)...);
}
return result;
}
Expand Down

0 comments on commit cfc9569

Please sign in to comment.