summaryrefslogtreecommitdiffstats
path: root/kwallet
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-15 19:11:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-02-15 19:11:41 +0000
commit374d939d8af431477ce2601815f0ba121b66871c (patch)
treead878478dcc0bedf51e3cffb2ed611ada422b290 /kwallet
parentf9279733bf71e446933b46f40cbe9c9b9f57b778 (diff)
downloadtdelibs-374d939d8af431477ce2601815f0ba121b66871c.tar.gz
tdelibs-374d939d8af431477ce2601815f0ba121b66871c.zip
Allow kdelibs to function correctly with TQt for Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1220926 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwallet')
-rw-r--r--kwallet/backend/kwalletbackend.cc2
-rw-r--r--kwallet/backend/kwalletbackend.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/kwallet/backend/kwalletbackend.cc b/kwallet/backend/kwalletbackend.cc
index 72b74d062..571032e8f 100644
--- a/kwallet/backend/kwalletbackend.cc
+++ b/kwallet/backend/kwalletbackend.cc
@@ -422,7 +422,7 @@ int Backend::open(const TQByteArray& password) {
// compare hashes
int sz = encrypted.size();
for (int i = 0; i < 20; i++) {
- if (testhash[i] != encrypted.at(sz - 20 + i)) {
+ if (testhash[i] != static_cast<const char>(encrypted.tqat(sz - 20 + i))) {
encrypted.fill(0);
sha.reset();
return -8; // hash error.
diff --git a/kwallet/backend/kwalletbackend.h b/kwallet/backend/kwalletbackend.h
index a2f654ec6..6592c23bd 100644
--- a/kwallet/backend/kwalletbackend.h
+++ b/kwallet/backend/kwalletbackend.h
@@ -143,7 +143,7 @@ class MD5Digest : public TQByteArray {
char x, y;
for (; i < 16; ++i) {
x = at(i);
- y = r.at(i);
+ y = const_cast<MD5Digest&>(r).tqat(i);
if (x != y) {
break;
}