@@ -177,49 +177,49 @@ void FreeHeap(void* p);
177
177
class CHeapObjBase {
178
178
public:
179
179
ALWAYSINLINE void * operator new (size_t size, MEMFLAGS f) throw () {
180
- return ( void *) AllocateHeap (size, f);
180
+ return AllocateHeap (size, f);
181
181
}
182
182
183
183
ALWAYSINLINE void * operator new (size_t size,
184
184
MEMFLAGS f,
185
185
const NativeCallStack& stack) throw () {
186
- return ( void *) AllocateHeap (size, f, stack);
186
+ return AllocateHeap (size, f, stack);
187
187
}
188
188
189
189
ALWAYSINLINE void * operator new (size_t size,
190
190
MEMFLAGS f,
191
191
const std::nothrow_t &,
192
192
const NativeCallStack& stack) throw () {
193
- return ( void *) AllocateHeap (size, f, stack, AllocFailStrategy::RETURN_NULL);
193
+ return AllocateHeap (size, f, stack, AllocFailStrategy::RETURN_NULL);
194
194
}
195
195
196
196
ALWAYSINLINE void * operator new (size_t size,
197
197
MEMFLAGS f,
198
198
const std::nothrow_t &) throw () {
199
- return ( void *) AllocateHeap (size, f, AllocFailStrategy::RETURN_NULL);
199
+ return AllocateHeap (size, f, AllocFailStrategy::RETURN_NULL);
200
200
}
201
201
202
202
ALWAYSINLINE void * operator new [](size_t size, MEMFLAGS f) throw () {
203
- return ( void *) AllocateHeap (size, f);
203
+ return AllocateHeap (size, f);
204
204
}
205
205
206
206
ALWAYSINLINE void * operator new [](size_t size,
207
207
MEMFLAGS f,
208
208
const NativeCallStack& stack) throw () {
209
- return ( void *) AllocateHeap (size, f, stack);
209
+ return AllocateHeap (size, f, stack);
210
210
}
211
211
212
212
ALWAYSINLINE void * operator new [](size_t size,
213
213
MEMFLAGS f,
214
214
const std::nothrow_t &,
215
215
const NativeCallStack& stack) throw () {
216
- return ( void *) AllocateHeap (size, f, stack, AllocFailStrategy::RETURN_NULL);
216
+ return AllocateHeap (size, f, stack, AllocFailStrategy::RETURN_NULL);
217
217
}
218
218
219
219
ALWAYSINLINE void * operator new [](size_t size,
220
220
MEMFLAGS f,
221
221
const std::nothrow_t &) throw () {
222
- return ( void *) AllocateHeap (size, f, AllocFailStrategy::RETURN_NULL);
222
+ return AllocateHeap (size, f, AllocFailStrategy::RETURN_NULL);
223
223
}
224
224
225
225
void operator delete (void * p) { FreeHeap (p); }
0 commit comments