forked from mirror/OpenTTD
(svn r12749) -Codechange: store the viewport information in the windows that have a viewport instead of one global array with a viewport for each window, even when they do not use the viewport.
This commit is contained in:
@@ -88,6 +88,9 @@ public:
|
||||
* Memory release for a single class instance.
|
||||
* @param ptr the memory to free.
|
||||
* @param size the amount of allocated memory (unused).
|
||||
*
|
||||
* @warning The value of the \a size parameter can only be trusted for
|
||||
* classes that have their own (virtual) destructor method.
|
||||
*/
|
||||
void operator delete(void *ptr, size_t size) { free(ptr); }
|
||||
|
||||
@@ -95,6 +98,9 @@ public:
|
||||
* Memory release for an array of class instances.
|
||||
* @param ptr the memory to free.
|
||||
* @param size the amount of allocated memory (unused).
|
||||
*
|
||||
* @warning The value of the \a size parameter can only be trusted for
|
||||
* classes that have their own (virtual) destructor method.
|
||||
*/
|
||||
void operator delete[](void *ptr, size_t size) { free(ptr); }
|
||||
};
|
||||
|
Reference in New Issue
Block a user