summaryrefslogtreecommitdiff
path: root/src/input/inputfunction.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-04 23:13:26 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-04 23:13:26 +0300
commit70e54365d660a52884af35487cfdf89d0d53ac9a (patch)
tree5cdbf55b2d977523364a554f2ea1c1bd46628da4 /src/input/inputfunction.h
parent8ea8b11a39ad94f521d66d2f182312655ad587b2 (diff)
downloadmanaverse-70e54365d660a52884af35487cfdf89d0d53ac9a.tar.gz
manaverse-70e54365d660a52884af35487cfdf89d0d53ac9a.tar.bz2
manaverse-70e54365d660a52884af35487cfdf89d0d53ac9a.tar.xz
manaverse-70e54365d660a52884af35487cfdf89d0d53ac9a.zip
Improve performance in getting printable key for actions.
Diffstat (limited to 'src/input/inputfunction.h')
-rw-r--r--src/input/inputfunction.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input/inputfunction.h b/src/input/inputfunction.h
index 58c4b0efc..21d1cd732 100644
--- a/src/input/inputfunction.h
+++ b/src/input/inputfunction.h
@@ -23,12 +23,15 @@
#include "input/inputitem.h"
+#include <string>
+
#include "localconsts.h"
-const unsigned int inputFunctionSize = 3;
+const size_t inputFunctionSize = 3U;
struct InputFunction final
{
+ std::string keyStr;
InputItem values[inputFunctionSize];
};