summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitf32d0d5fd00bb0fb863bf82a406f98ccf909cd8b (patch)
tree51cd396142993d8cc972f94d0b81abbbeb9ee6ee /tools
parentc8d1884b41b717f12665f760b74757e851fddb15 (diff)
downloaddbus-1-tqt-f32d0d5fd00bb0fb863bf82a406f98ccf909cd8b.tar.gz
dbus-1-tqt-f32d0d5fd00bb0fb863bf82a406f98ccf909cd8b.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/dbus-1-tqt@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'tools')
-rw-r--r--tools/dbusxml2qt3/main.cpp6
-rw-r--r--tools/dbusxml2qt3/methodgen.cpp44
2 files changed, 25 insertions, 25 deletions
diff --git a/tools/dbusxml2qt3/main.cpp b/tools/dbusxml2qt3/main.cpp
index 500febf..cdc0a98 100644
--- a/tools/dbusxml2qt3/main.cpp
+++ b/tools/dbusxml2qt3/main.cpp
@@ -42,7 +42,7 @@ OptionMap parseOptions(int argc, char** argv);
bool checkForOption(const OptionMap& options, const TQString& option)
{
- return options.tqfind(option) != options.end();
+ return options.find(option) != options.end();
}
int main(int argc, char** argv)
@@ -336,7 +336,7 @@ int main(int argc, char** argv)
exit(3);
}
- nodeClassName.tqreplace('/', "_");
+ nodeClassName.replace('/', "_");
}
TQStringList nameParts = TQStringList::split("::", nodeClassName);
@@ -451,7 +451,7 @@ void usage()
bool testAndSetOption(OptionMap& options, const TQString& option, const TQString& value)
{
- OptionMap::iterator it = options.tqfind(option);
+ OptionMap::iterator it = options.find(option);
if (it == options.end())
{
options.insert(option, value);
diff --git a/tools/dbusxml2qt3/methodgen.cpp b/tools/dbusxml2qt3/methodgen.cpp
index 5741f4e..39d6952 100644
--- a/tools/dbusxml2qt3/methodgen.cpp
+++ b/tools/dbusxml2qt3/methodgen.cpp
@@ -133,8 +133,8 @@ static bool parseDBusSignature(const TQString& signature, Argument& argument)
}
else if (signature.startsWith("a{"))
{
- int from = signature.tqfind("{");
- int to = signature.tqfindRev("}");
+ int from = signature.find("{");
+ int to = signature.findRev("}");
if (from == -1 || to == -1 || (to - from - 1) < 2) return false;
TQString dictSignature = signature.mid(from + 1, (to - from - 1));
@@ -600,8 +600,8 @@ bool MethodGenerator::extractMethods(const TQDomElement& interfaceElement,
{
Property property;
property.name = element.attribute("name");
- property.read = element.attribute("access").tqfind("read") != -1;
- property.write = element.attribute("access").tqfind("write") != -1;
+ property.read = element.attribute("access").find("read") != -1;
+ property.write = element.attribute("access").find("write") != -1;
TQString annotation =
propertyAnnotations[TQString("Property%1").arg(propertyCount)];
@@ -754,7 +754,7 @@ void MethodGenerator::writeMethodCall(const Class& classData,
if (method.async)
{
stream << " int _asyncCallId = 0;" << endl;
- stream << " while (m_asyncCalls.tqfind(_asyncCallId) != m_asyncCalls.end())"
+ stream << " while (m_asyncCalls.find(_asyncCallId) != m_asyncCalls.end())"
<< endl;
stream << " {" << endl;
stream << " ++_asyncCallId;" << endl;
@@ -976,12 +976,12 @@ void MethodGenerator::writeInterfaceAsyncReplyHandler(const Class& classData,
stream << endl;
stream << "{" << endl;
- stream << " TQMap<int, TQT_DBusMessage>::iterator tqfindIt = m_asyncCalls.tqfind(asyncCallId);" << endl;
- stream << " if (tqfindIt == m_asyncCalls.end()) return;" << endl;
+ stream << " TQMap<int, TQT_DBusMessage>::iterator findIt = m_asyncCalls.find(asyncCallId);" << endl;
+ stream << " if (findIt == m_asyncCalls.end()) return;" << endl;
stream << endl;
- stream << " TQT_DBusMessage call = tqfindIt.data();" << endl;
- stream << " m_asyncCalls.erase(tqfindIt);" << endl;
+ stream << " TQT_DBusMessage call = findIt.data();" << endl;
+ stream << " m_asyncCalls.erase(findIt);" << endl;
stream << endl;
stream << " TQT_DBusMessage reply = TQT_DBusMessage::methodReply(call);"
@@ -1029,12 +1029,12 @@ void MethodGenerator::writeInterfaceAsyncReplyHandler(const Class& classData,
stream << "{" << endl;
- stream << " TQMap<int, TQT_DBusMessage>::iterator tqfindIt = m_asyncCalls.tqfind(asyncCallId);" << endl;
- stream << " if (tqfindIt == m_asyncCalls.end()) return;" << endl;
+ stream << " TQMap<int, TQT_DBusMessage>::iterator findIt = m_asyncCalls.find(asyncCallId);" << endl;
+ stream << " if (findIt == m_asyncCalls.end()) return;" << endl;
stream << endl;
- stream << " TQT_DBusMessage call = tqfindIt.data();" << endl;
- stream << " m_asyncCalls.erase(tqfindIt);" << endl;
+ stream << " TQT_DBusMessage call = findIt.data();" << endl;
+ stream << " m_asyncCalls.erase(findIt);" << endl;
stream << endl;
stream << " TQT_DBusMessage reply = TQT_DBusMessage::methodError(call, error);"
@@ -1544,12 +1544,12 @@ void MethodGenerator::writeProxyAsyncReplyHandler(const Class& classData,
<< "::slotHandleAsyncReply(int asyncCallId, const TQT_DBusMessage& message)" << endl;
stream << "{" << endl;
- stream << " TQMap<int, TQString>::iterator tqfindIt = "
- << "m_asyncCalls.tqfind(asyncCallId);" << endl;
- stream << " if (tqfindIt == m_asyncCalls.end()) return;" << endl;
+ stream << " TQMap<int, TQString>::iterator findIt = "
+ << "m_asyncCalls.find(asyncCallId);" << endl;
+ stream << " if (findIt == m_asyncCalls.end()) return;" << endl;
stream << endl;
- stream << " const TQString signalName = tqfindIt.data();" << endl;
- stream << " m_asyncCalls.erase(tqfindIt);" << endl;
+ stream << " const TQString signalName = findIt.data();" << endl;
+ stream << " m_asyncCalls.erase(findIt);" << endl;
stream << endl;
TQValueList<Method>::const_iterator it = classData.asyncReplySignals.begin();
@@ -1722,12 +1722,12 @@ void MethodGenerator::writeNodeMethods(const Class& classData,
stream << "bool " << classData.name
<< "::handleMethodCall(const TQT_DBusMessage& message)" << endl;
stream << "{" << endl;
- stream << " TQMap<TQString, TQT_DBusObjectBase*>::iterator tqfindIt = "
- << "m_private->interfaces.tqfind(message.interface());" << endl;
- stream << " if (tqfindIt == m_private->interfaces.end()) return false;"
+ stream << " TQMap<TQString, TQT_DBusObjectBase*>::iterator findIt = "
+ << "m_private->interfaces.find(message.interface());" << endl;
+ stream << " if (findIt == m_private->interfaces.end()) return false;"
<< endl;
stream << endl;
- stream << " return delegateMethodCall(message, tqfindIt.data());" << endl;
+ stream << " return delegateMethodCall(message, findIt.data());" << endl;
stream << "}" << endl;
stream << endl;