Diffstat (limited to 'noncore/apps/keyz-cfg/zkbnames.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/keyz-cfg/zkbnames.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/noncore/apps/keyz-cfg/zkbnames.cpp b/noncore/apps/keyz-cfg/zkbnames.cpp index fec3a2e..c20a114 100644 --- a/noncore/apps/keyz-cfg/zkbnames.cpp +++ b/noncore/apps/keyz-cfg/zkbnames.cpp | |||
@@ -1,14 +1,12 @@ | |||
1 | #ifdef USE_ZKB_NAMES | ||
2 | |||
3 | #include <qmap.h> | 1 | #include <qmap.h> |
4 | #include <qstring.h> | 2 | #include <qstring.h> |
5 | 3 | ||
6 | #include "zkbnames.h" | 4 | #include "zkbnames.h" |
7 | 5 | ||
8 | QString Null_String((const char*) 0); | 6 | QString Null_String((const char*) 0); |
9 | 7 | ||
10 | // Implementation of KeyNames | 8 | // Implementation of KeyNames |
11 | static struct { | 9 | static struct { |
12 | int key; | 10 | int key; |
13 | char *name; | 11 | char *name; |
14 | } Key_Names[] = { | 12 | } Key_Names[] = { |
@@ -438,13 +436,12 @@ const QString& KeycodeNames::find(int k) { | |||
438 | if (kcn_map.isEmpty()) { | 436 | if (kcn_map.isEmpty()) { |
439 | init_kcn_maps(); | 437 | init_kcn_maps(); |
440 | } | 438 | } |
441 | 439 | ||
442 | QMap<int, QString>::Iterator it = kcn_rmap.find(k); | 440 | QMap<int, QString>::Iterator it = kcn_rmap.find(k); |
443 | if (it == kcn_rmap.end()) { | 441 | if (it == kcn_rmap.end()) { |
444 | return Null_String; | 442 | return Null_String; |
445 | } else { | 443 | } else { |
446 | return it.data(); | 444 | return it.data(); |
447 | } | 445 | } |
448 | } | 446 | } |
449 | 447 | ||
450 | #endif | ||