summaryrefslogtreecommitdiff
path: root/src/textbuf_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-03-17 13:04:10 +0000
committerfrosch <frosch@openttd.org>2013-03-17 13:04:10 +0000
commit579ee7a59230db6d1caac8e653d27ccc6e454e2e (patch)
tree58aefe8ebad6e9dbeeda73f02f9a1071f22b091d /src/textbuf_type.h
parent9cad36865fb6aeff8aeab6d28bea41f05d2c91e0 (diff)
downloadopenttd-579ee7a59230db6d1caac8e653d27ccc6e454e2e.tar.xz
(svn r25089) -Codechange: Move CharSetFilter from QueryString to Textbuf.
Diffstat (limited to 'src/textbuf_type.h')
-rw-r--r--src/textbuf_type.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/textbuf_type.h b/src/textbuf_type.h
index 8d38e8b8a..2582d1e25 100644
--- a/src/textbuf_type.h
+++ b/src/textbuf_type.h
@@ -17,6 +17,7 @@
/** Helper/buffer for input fields. */
struct Textbuf {
+ CharSetFilter afilter; ///< Allowed characters
char * const buf; ///< buffer in which text is saved
uint16 max_bytes; ///< the maximum size of the buffer in bytes (including terminating '\0')
uint16 max_chars; ///< the maximum size of the buffer in characters (including terminating '\0')