diff options
author | Max Horn | 2004-04-25 14:42:14 +0000 |
---|---|---|
committer | Max Horn | 2004-04-25 14:42:14 +0000 |
commit | d4f876b37df0fdc772936eedf9b112802987254b (patch) | |
tree | c7e782e5846dd153159c574ca9cb2ca250dfd34f /saga/text_mod.h | |
parent | f9cd78cedd48371f8aa9d98cbcdeb879fe543fac (diff) | |
download | scummvm-rg350-d4f876b37df0fdc772936eedf9b112802987254b.tar.gz scummvm-rg350-d4f876b37df0fdc772936eedf9b112802987254b.tar.bz2 scummvm-rg350-d4f876b37df0fdc772936eedf9b112802987254b.zip |
Fix many warnings; use C++ type system instead of C style typedefs; removed various unused stuff; const correctness; etc.
svn-id: r13622
Diffstat (limited to 'saga/text_mod.h')
-rw-r--r-- | saga/text_mod.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/saga/text_mod.h b/saga/text_mod.h index b136a3b34a..27893fda12 100644 --- a/saga/text_mod.h +++ b/saga/text_mod.h @@ -37,7 +37,7 @@ enum R_TEXT_FLAGS { TEXT_TIMEOUT = 0x01 }; -typedef struct R_TEXTLIST_ENTRY_tag { +struct R_TEXTLIST_ENTRY { struct R_TEXTLIST_ENTRY_tag *next; struct R_TEXTLIST_ENTRY_tag *prev; int display; @@ -49,8 +49,10 @@ typedef struct R_TEXTLIST_ENTRY_tag { int flags; int font_id; long time; - char *string; -} R_TEXTLIST_ENTRY; + const char *string; + + R_TEXTLIST_ENTRY() { memset(this, 0, sizeof(*this)); } +}; typedef struct R_TEXTLIST_tag R_TEXTLIST; |