diff options
author | rubidium <rubidium@openttd.org> | 2008-05-17 23:11:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-17 23:11:06 +0000 |
commit | f5681547efc060ab0cc47c36316c4f2aa1217948 (patch) | |
tree | cdbaf12f7c5a7666ecc23983c51dca268e3b58e2 /src/querystring_gui.h | |
parent | c1713c9ab7438386dbda32b4c33e95995882f702 (diff) | |
download | openttd-f5681547efc060ab0cc47c36316c4f2aa1217948.tar.xz |
(svn r13151) -Codechange: use an enum instead of bool as return type of OnKeyPress/OnCTRLStateChange to make it obvious what the return values mean.
Diffstat (limited to 'src/querystring_gui.h')
-rw-r--r-- | src/querystring_gui.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/querystring_gui.h b/src/querystring_gui.h index 8df54d1b2..004501b31 100644 --- a/src/querystring_gui.h +++ b/src/querystring_gui.h @@ -17,7 +17,7 @@ struct QueryString { void DrawEditBox(Window *w, int wid); void HandleEditBox(Window *w, int wid); - int HandleEditBoxKey(Window *w, int wid, uint16 key, uint16 keycode, bool &cont); + int HandleEditBoxKey(Window *w, int wid, uint16 key, uint16 keycode, Window::EventState &state); }; struct QueryStringBaseWindow : public Window, public QueryString { @@ -30,7 +30,7 @@ struct QueryStringBaseWindow : public Window, public QueryString { void DrawEditBox(int wid); void HandleEditBox(int wid); - int HandleEditBoxKey(int wid, uint16 key, uint16 keycode, bool &cont); + int HandleEditBoxKey(int wid, uint16 key, uint16 keycode, EventState &state); }; void ShowOnScreenKeyboard(QueryStringBaseWindow *parent, int button, int cancel, int ok); |