diff src/misc_gui.cpp @ 6248:0789677a15a0 draft

(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
author rubidium <rubidium@openttd.org>
date Wed, 07 Mar 2007 12:11:48 +0000 (2007-03-07)
parents 57363e064324
children 60486b0b3e39
line wrap: on
line diff
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -1191,12 +1191,12 @@
 };
 
 
-typedef struct query_d {
+struct query_d {
 	void (*proc)(Window*, bool); ///< callback function executed on closing of popup. Window* points to parent, bool is true if 'yes' clicked, false otherwise
 	StringID message;            ///< message shown for query window
 	uint32 params[20];           ///< local copy of _decode_parameters
 	bool calledback;             ///< has callback been executed already (internal usage for WE_DESTROY event)
-} query_d;
+};
 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(query_d));
 
 
@@ -1766,7 +1766,7 @@
 typedef TinyEnumT<ce_flags_long> ce_flags;
 
 
-typedef struct CheatEntry {
+struct CheatEntry {
 	VarType type;          ///< type of selector
 	ce_flags flags;        ///< selector flags
 	StringID str;          ///< string with descriptive text
@@ -1774,7 +1774,7 @@
 	bool *been_used;       ///< has this cheat been used before?
 	CheckButtonClick *proc;///< procedure
 	int16 min, max;        ///< range for spinbox setting
-} CheatEntry;
+};
 
 static const CheatEntry _cheats_ui[] = {
 	{SLE_BOOL, {CE_CLICK}, STR_CHEAT_MONEY,          &_cheats.money.value,           &_cheats.money.been_used,           &ClickMoneyCheat,         0,  0},