summaryrefslogtreecommitdiff
path: root/src/textbuf_gui.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-04-28 17:32:33 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-13 23:13:17 +0200
commit95386dc2b8404519c91b9e0ad728c39fb1d9e118 (patch)
tree2ae78944bdb83d220e7d9574302848e26b39baf8 /src/textbuf_gui.h
parent77330d09fd8307261e94fe0eb0260f5ca5cc3898 (diff)
downloadopenttd-95386dc2b8404519c91b9e0ad728c39fb1d9e118.tar.xz
Codechange: move misc settings to std::string
Diffstat (limited to 'src/textbuf_gui.h')
-rw-r--r--src/textbuf_gui.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/textbuf_gui.h b/src/textbuf_gui.h
index c96f4e2e0..200d62582 100644
--- a/src/textbuf_gui.h
+++ b/src/textbuf_gui.h
@@ -37,8 +37,7 @@ static const uint OSK_KEYBOARD_ENTRIES = 50;
/**
* The number of characters has to be OSK_KEYBOARD_ENTRIES. However, these
* have to be UTF-8 encoded, which means up to 4 bytes per character.
- * Furthermore the string needs to be '\0'-terminated.
*/
-extern char _keyboard_opt[2][OSK_KEYBOARD_ENTRIES * 4 + 1];
+extern std::string _keyboard_opt[2];
#endif /* TEXTBUF_GUI_H */