summaryrefslogtreecommitdiffstats
path: root/libkdegames/kgame/kgamepropertyhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdegames/kgame/kgamepropertyhandler.cpp')
-rw-r--r--libkdegames/kgame/kgamepropertyhandler.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libkdegames/kgame/kgamepropertyhandler.cpp b/libkdegames/kgame/kgamepropertyhandler.cpp
index 32e831d8..26588de3 100644
--- a/libkdegames/kgame/kgamepropertyhandler.cpp
+++ b/libkdegames/kgame/kgamepropertyhandler.cpp
@@ -117,7 +117,7 @@ bool KGamePropertyHandler::processMessage(TQDataStream &stream, int id, bool isS
int cmd;
KGameMessage::extractPropertyCommand(stream, propertyId, cmd);
//kdDebug(11001) << k_funcinfo << ": Got COMMAND for id= "<<propertyId <<endl;
- p = d->mIdDict.tqfind(propertyId);
+ p = d->mIdDict.find(propertyId);
if (p) {
if (!isSender || p->policy()==KGamePropertyBase::PolicyClean) {
p->command(stream, cmd, isSender);
@@ -127,7 +127,7 @@ bool KGamePropertyHandler::processMessage(TQDataStream &stream, int id, bool isS
}
return true;
}
- p = d->mIdDict.tqfind(propertyId);
+ p = d->mIdDict.find(propertyId);
if (p) {
//kdDebug(11001) << k_funcinfo << ": Loading " << propertyId << endl;
if (!isSender || p->policy()==KGamePropertyBase::PolicyClean) {
@@ -151,7 +151,7 @@ bool KGamePropertyHandler::removeProperty(KGamePropertyBase* data)
bool KGamePropertyHandler::addProperty(KGamePropertyBase* data, TQString name)
{
//kdDebug(11001) << k_funcinfo << ": " << data->id() << endl;
- if (d->mIdDict.tqfind(data->id())) {
+ if (d->mIdDict.find(data->id())) {
// this id already exists
kdError(11001) << " -> cannot add property " << data->id() << endl;
return false;
@@ -172,8 +172,8 @@ bool KGamePropertyHandler::addProperty(KGamePropertyBase* data, TQString name)
TQString KGamePropertyHandler::propertyName(int id) const
{
TQString s;
- if (d->mIdDict.tqfind(id)) {
- if (d->mNameMap.tqcontains(id)) {
+ if (d->mIdDict.find(id)) {
+ if (d->mNameMap.contains(id)) {
s = i18n("%1 (%2)").tqarg(d->mNameMap[id]).tqarg(id);
} else {
s = i18n("Unnamed - ID: %1").tqarg(id);
@@ -326,9 +326,9 @@ bool KGamePropertyHandler::sendProperty(TQDataStream &s)
return sent;
}
-KGamePropertyBase *KGamePropertyHandler::tqfind(int id)
+KGamePropertyBase *KGamePropertyHandler::find(int id)
{
- return d->mIdDict.tqfind(id);
+ return d->mIdDict.find(id);
}
void KGamePropertyHandler::clear()
@@ -338,7 +338,7 @@ void KGamePropertyHandler::clear()
while (it.toFirst()) {
KGamePropertyBase* p = it.toFirst();
p->unregisterData();
- if (d->mIdDict.tqfind(p->id())) {
+ if (d->mIdDict.find(p->id())) {
// shouldn't happen - but if mOwner in KGamePropertyBase is NULL
// this might be possible
removeProperty(p);