author | alwin <alwin> | 2004-02-26 16:46:05 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-02-26 16:46:05 (UTC) |
commit | 15f4596df91110689176fb3b76a4fcf6663c1c09 (patch) (side-by-side diff) | |
tree | fe9fcef4baf851b13427cc06b7b2b6b83b5adb5e /noncore/apps/keyz-cfg/zkbxml.cpp | |
parent | 89cbb91c0217a1ba0480c23e8ef14221975f04e2 (diff) | |
download | opie-15f4596df91110689176fb3b76a4fcf6663c1c09.zip opie-15f4596df91110689176fb3b76a4fcf6663c1c09.tar.gz opie-15f4596df91110689176fb3b76a4fcf6663c1c09.tar.bz2 |
forgot remove some ifdefs
Diffstat (limited to 'noncore/apps/keyz-cfg/zkbxml.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/keyz-cfg/zkbxml.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/noncore/apps/keyz-cfg/zkbxml.cpp b/noncore/apps/keyz-cfg/zkbxml.cpp index 76472cb..5b0084c 100644 --- a/noncore/apps/keyz-cfg/zkbxml.cpp +++ b/noncore/apps/keyz-cfg/zkbxml.cpp @@ -488,25 +488,19 @@ void ZkbXmlHandler::setError(const QString& e) { int ZkbXmlHandler::str2key(const QString& s) { int ret; -#ifdef USE_ZKB_NAMES ret = KeyNames::find(s); if (ret == -1) { setError("Invalid value: " + s); } -#else - ret = str2uint(s); -#endif - return ret; } int ZkbXmlHandler::str2modifier(const QString& val) { int ret; -#ifdef USE_ZKB_NAMES int n, i; ret = 0; n = 0; do { @@ -525,11 +519,8 @@ int ZkbXmlHandler::str2modifier(const QString& val) { ret |= v; n = i + 1; } while (n < val.length()); -#else - ret = str2uint(val); -#endif return ret; } @@ -547,18 +538,13 @@ int ZkbXmlHandler::str2unicode(const QString& s) { int ZkbXmlHandler::str2keycode(const QString& s) { int ret; -#ifdef USE_ZKB_NAMES ret = KeycodeNames::find(s); if (ret == -1) { setError("Invalid value: " + s); } -#else - ret = str2uint(s); -#endif - return ret; } int ZkbXmlHandler::str2uint(const QString& s) { |