summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h25
1 files changed, 20 insertions, 5 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 4cd4c990b..57fcd5a02 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -345,11 +345,26 @@ public:
Window();
virtual ~Window();
- /* Don't allow arrays; arrays of Windows are pointless as you need
- * to destruct them all at the same time too, which is kinda hard. */
- FORCEINLINE void *operator new[](size_t size) { NOT_REACHED(); }
- /* Don't free the window directly; it corrupts the linked list when iterating */
- FORCEINLINE void operator delete(void *ptr) {}
+
+ /**
+ * Helper allocation function to disallow something.
+ * Don't allow arrays; arrays of Windows are pointless as you need
+ * to destruct them all at the same time too, which is kinda hard.
+ * @param size the amount of space not to allocate
+ */
+ FORCEINLINE void *operator new[](size_t size)
+ {
+ NOT_REACHED();
+ }
+
+ /**
+ * Helper allocation function to disallow something.
+ * Don't free the window directly; it corrupts the linked list when iterating
+ * @param ptr the pointer not to free
+ */
+ FORCEINLINE void operator delete(void *ptr)
+ {
+ }
uint16 flags4; ///< Window flags, @see WindowFlags
WindowClass window_class; ///< Window class