summaryrefslogtreecommitdiff
path: root/src/Keys.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Keys.hh')
-rw-r--r--src/Keys.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Keys.hh b/src/Keys.hh
index f83f6e8..3463795 100644
--- a/src/Keys.hh
+++ b/src/Keys.hh
@@ -86,14 +86,14 @@ private:
86 ~t_key(); 86 ~t_key();
87 87
88 inline t_key *find(unsigned int key_, unsigned int mod_) { 88 inline t_key *find(unsigned int key_, unsigned int mod_) {
89 for (unsigned int i=0; i<keylist.size(); i++) { 89 for (size_t i = 0; i < keylist.size(); i++) {
90 if (keylist[i]->key == key_ && keylist[i]->mod == FbTk::KeyUtil::instance().isolateModifierMask(mod_)) 90 if (keylist[i]->key == key_ && keylist[i]->mod == FbTk::KeyUtil::instance().isolateModifierMask(mod_))
91 return keylist[i]; 91 return keylist[i];
92 } 92 }
93 return 0; 93 return 0;
94 } 94 }
95 inline t_key *find(XKeyEvent &ke) { 95 inline t_key *find(XKeyEvent &ke) {
96 for (unsigned int i=0; i<keylist.size(); i++) { 96 for (size_t i = 0; i < keylist.size(); i++) {
97 if (keylist[i]->key == ke.keycode && 97 if (keylist[i]->key == ke.keycode &&
98 keylist[i]->mod == FbTk::KeyUtil::instance().isolateModifierMask(ke.state)) 98 keylist[i]->mod == FbTk::KeyUtil::instance().isolateModifierMask(ke.state))
99 return keylist[i]; 99 return keylist[i];