From 979ccd45baa9a38169661ba379a341cae8619c3b Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 7 Mar 2007 12:11:48 +0000 Subject: (svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {}; --- src/misc_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/misc_gui.cpp') diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index d7355e1bd..c2c0ff120 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1191,12 +1191,12 @@ enum QueryWidgets { }; -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 @@ template <> struct EnumPropsT : MakeEnumPropsT 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 @@ typedef struct CheatEntry { 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}, -- cgit v1.2.3-54-g00ecf