aboutsummaryrefslogtreecommitdiff
path: root/gui/predictivedialog.h
diff options
context:
space:
mode:
authorJohannes Schickel2016-01-24 03:22:26 +0100
committerJohannes Schickel2016-01-24 03:22:26 +0100
commit7c687a05c7e986d99f459f8efcb7bebcb53514d6 (patch)
treee58ed3abcd270a3d49e31d98bd1777aae5f0b5eb /gui/predictivedialog.h
parentc72d95cbcc81d4a9f2a51f7147e1d805c46e0d82 (diff)
downloadscummvm-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.h6
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