aboutsummaryrefslogtreecommitdiff
path: root/src/Keys.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2006-04-02 21:37:44 (GMT)
committerfluxgen <fluxgen>2006-04-02 21:37:44 (GMT)
commit894a7148be8ac88f7f1e98917f33088ab301bf60 (patch)
treeb9c3bd9fa04a64babc749a319a5610caabea9479 /src/Keys.hh
parent0ca3754d683b862762695d1be891c98410f439ac (diff)
downloadfluxbox-894a7148be8ac88f7f1e98917f33088ab301bf60.zip
fluxbox-894a7148be8ac88f7f1e98917f33088ab301bf60.tar.bz2
size_t fixes, thanks Semushin Slava aka php-coder
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];