summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-06-15 15:06:22 +0000
committerfrosch <frosch@openttd.org>2013-06-15 15:06:22 +0000
commit18ae9c78bc238ec3f51b778226d4769cee030f39 (patch)
treec6d36b45018632d11cb83988aa65d1c508fc98fc /src/window_gui.h
parentbb308c5e30d373272811c0031b13eea46d79dba0 (diff)
downloadopenttd-18ae9c78bc238ec3f51b778226d4769cee030f39.tar.xz
(svn r25402) -Fix-ish: Prevent copying of BasePool and WindowDesc, since they register in static vectors.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 6288aadc1..c5c37be85 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -197,6 +197,13 @@ struct WindowDesc : ZeroedMemoryAllocator {
static void LoadFromConfig();
static void SaveToConfig();
+
+private:
+ /**
+ * Dummy private copy constructor to prevent compilers from
+ * copying the structure, which fails due to _window_descs.
+ */
+ WindowDesc(const WindowDesc &other);
};
/**