summaryrefslogtreecommitdiff
path: root/src/core/alloc_type.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-17 09:42:44 +0000
committerrubidium <rubidium@openttd.org>2008-04-17 09:42:44 +0000
commit2752568d61e8a25dfef3992edf8a8cc0ce821fca (patch)
treef0e8b714d0affba2b46fcd6f85a72b4653e031e2 /src/core/alloc_type.hpp
parent9c3725827a84b406a6d7108a3472ffbc88e923ed (diff)
downloadopenttd-2752568d61e8a25dfef3992edf8a8cc0ce821fca.tar.xz
(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.
Diffstat (limited to 'src/core/alloc_type.hpp')
-rw-r--r--src/core/alloc_type.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/alloc_type.hpp b/src/core/alloc_type.hpp
index 4146e5ca3..872558fb3 100644
--- a/src/core/alloc_type.hpp
+++ b/src/core/alloc_type.hpp
@@ -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); }
};