summaryrefslogtreecommitdiffstats
path: root/kdesu/kdesud/repo.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-19 01:42:14 +0000
commit8155225c9be993acc0512956416d195edfef4eb9 (patch)
treede4f3cd17614fc67e47eefabcdbe2fbe170c9be7 /kdesu/kdesud/repo.cpp
parent364641b8e0279758d236af39abd138d379328a19 (diff)
downloadtdebase-8155225c9be993acc0512956416d195edfef4eb9.tar.gz
tdebase-8155225c9be993acc0512956416d195edfef4eb9.zip
Enable compilation with TQt for Qt4 3.4.0 TP2
This should not break compatibility with TQt for Qt3; if it does please fix it ASAP! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1215552 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesu/kdesud/repo.cpp')
-rw-r--r--kdesu/kdesud/repo.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kdesu/kdesud/repo.cpp b/kdesu/kdesud/repo.cpp
index cdbbcaed1..fb1d7eadb 100644
--- a/kdesu/kdesud/repo.cpp
+++ b/kdesu/kdesud/repo.cpp
@@ -27,7 +27,7 @@ Repository::~Repository()
void Repository::add(const TQCString &key, Data_entry &data)
{
- RepoIterator it = repo.find(key);
+ RepoIterator it = repo.tqfind(key);
if (it != repo.end())
remove(key);
if (data.timeout == 0)
@@ -43,7 +43,7 @@ int Repository::remove(const TQCString &key)
if( key.isEmpty() )
return -1;
- RepoIterator it = repo.find(key);
+ RepoIterator it = repo.tqfind(key);
if (it == repo.end())
return -1;
it.data().value.fill('x');
@@ -60,8 +60,8 @@ int Repository::removeSpecialKey(const TQCString &key)
TQValueStack<TQCString> rm_keys;
for (RepoCIterator it=repo.begin(); it!=repo.end(); ++it)
{
- if ( key.find( it.data().group ) == 0 &&
- it.key().find( key ) >= 0 )
+ if ( key.tqfind( static_cast<const char *>(it.data().group) ) == 0 &&
+ it.key().tqfind( static_cast<const char *>(key) ) >= 0 )
{
rm_keys.push(it.key());
found = 0;
@@ -128,13 +128,13 @@ TQCString Repository::findKeys(const TQCString &group, const char *sep ) const
{
key = it.key().copy();
kdDebug(1205) << "Matching key found: " << key << endl;
- pos = key.findRev(sep);
+ pos = key.tqfindRev(sep);
key.truncate( pos );
key.remove(0, 2);
if (!list.isEmpty())
{
// Add the same keys only once please :)
- if( !list.contains(key) )
+ if( !list.tqcontains(static_cast<const char *>(key)) )
{
kdDebug(1205) << "Key added to list: " << key << endl;
list += '\007'; // I do not know
@@ -154,7 +154,7 @@ TQCString Repository::find(const TQCString &key) const
if( key.isEmpty() )
return 0;
- RepoCIterator it = repo.find(key);
+ RepoCIterator it = repo.tqfind(key);
if (it == repo.end())
return 0;
return it.data().value;