diff options
author | Johannes Schickel | 2016-01-24 03:22:26 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-01-24 03:22:26 +0100 |
commit | 7c687a05c7e986d99f459f8efcb7bebcb53514d6 (patch) | |
tree | e58ed3abcd270a3d49e31d98bd1777aae5f0b5eb /gui/predictivedialog.h | |
parent | c72d95cbcc81d4a9f2a51f7147e1d805c46e0d82 (diff) | |
download | scummvm-rg350-7c687a05c7e986d99f459f8efcb7bebcb53514d6.tar.gz scummvm-rg350-7c687a05c7e986d99f459f8efcb7bebcb53514d6.tar.bz2 scummvm-rg350-7c687a05c7e986d99f459f8efcb7bebcb53514d6.zip |
GUI: Make PredictiveDialog::_btns a fixed size array.
Diffstat (limited to 'gui/predictivedialog.h')
-rw-r--r-- | gui/predictivedialog.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/predictivedialog.h b/gui/predictivedialog.h index a7b7b993cc..c64fcc8264 100644 --- a/gui/predictivedialog.h +++ b/gui/predictivedialog.h @@ -54,6 +54,10 @@ enum ButtonId { }; enum { + kButtonCount = kBtn0Act + 1 +}; + +enum { kRepeatDelay = 500 }; @@ -140,7 +144,7 @@ private: bool _needRefresh; private: EditTextWidget *_edittext; - ButtonWidget **_btns; + ButtonWidget *_btns[kButtonCount]; }; } // namespace GUI |