diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
commit | 10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch) | |
tree | 4bc444c00a79e88105f2cfce5b6209994c413ca0 /dcop/client/dcop.cpp | |
parent | 307136d8eef0ba133b78ceee8e901138d4c996a1 (diff) | |
download | tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip |
Revert automated changes
Sorry guys, they are just not ready for prime time
Work will continue as always
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'dcop/client/dcop.cpp')
-rw-r--r-- | dcop/client/dcop.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/dcop/client/dcop.cpp b/dcop/client/dcop.cpp index 86b63cba6..1d167ce70 100644 --- a/dcop/client/dcop.cpp +++ b/dcop/client/dcop.cpp @@ -158,9 +158,9 @@ void queryFunctions( const char* app, const char* obj ) int callFunction( const char* app, const char* obj, const char* func, const QCStringList args ) { - TQString f = func; // Qt is better with tqunicode strings, so use one. - int left = f.tqfind( '(' ); - int right = f.tqfind( ')' ); + TQString f = func; // Qt is better with unicode strings, so use one. + int left = f.find( '(' ); + int right = f.find( ')' ); if ( right < left ) { @@ -181,12 +181,12 @@ int callFunction( const char* app, const char* obj, const char* func, const QCSt return( 1 ); } for ( QCStringList::Iterator it = funcs.begin(); it != funcs.end(); ++it ) { - int l = (*it).tqfind( '(' ); + int l = (*it).find( '(' ); int s; if (l > 0) - s = (*it).tqfindRev( ' ', l); + s = (*it).findRev( ' ', l); else - s = (*it).tqfind( ' ' ); + s = (*it).find( ' ' ); if ( s < 0 ) s = 0; @@ -195,8 +195,8 @@ int callFunction( const char* app, const char* obj, const char* func, const QCSt if ( l > 0 && (*it).mid( s, l - s ) == func ) { realfunc = (*it).mid( s ); - const TQString arguments = (*it).mid(l+1,(*it).tqfind( ')' )-l-1); - uint a = arguments.tqcontains(','); + const TQString arguments = (*it).mid(l+1,(*it).find( ')' )-l-1); + uint a = arguments.contains(','); if ( (a==0 && !arguments.isEmpty()) || a>0) a++; if ( a == args.count() ) @@ -209,8 +209,8 @@ int callFunction( const char* app, const char* obj, const char* func, const QCSt return( 1 ); } f = realfunc; - left = f.tqfind( '(' ); - right = f.tqfind( ')' ); + left = f.find( '(' ); + right = f.find( ')' ); } doit: @@ -230,7 +230,7 @@ int callFunction( const char* app, const char* obj, const char* func, const QCSt for ( TQStringList::Iterator it = types.begin(); it != types.end(); ++it ) { TQString lt = (*it).simplifyWhiteSpace(); - int s = lt.tqfind(' '); + int s = lt.find(' '); // If there are spaces in the name, there may be two // reasons: the parameter name is still there, ie. @@ -250,7 +250,7 @@ int callFunction( const char* app, const char* obj, const char* func, const QCSt // s=1; - while (s < static_cast<int>(partl.count()) && intTypes.tqcontains(partl[s])) + while (s < static_cast<int>(partl.count()) && intTypes.contains(partl[s])) { s++; } @@ -345,7 +345,7 @@ void showHelp( int exitCode = 0 ) << " in bash, but because no new dcop instance has to be started" << endl << " for each line this is generally much faster, especially for" << endl << " the slower GNU dynamic linkers." << endl - << " The '%1' placeholder cannot be used to tqreplace e.g. the" << endl + << " The '%1' placeholder cannot be used to replace e.g. the" << endl << " program, object or method name." << endl << " --user <user> Connect to the given user's DCOP server. This option will" << endl << " ignore the values of the environment vars $DCOPSERVER and" << endl @@ -464,9 +464,9 @@ int runDCOP( QCStringList args, UserList users, Session session, QCStringList params; DCOPClient *client = 0L; int retval = 0; - if ( !args.isEmpty() && args[ 0 ].tqfind( "DCOPRef(" ) == 0 ) + if ( !args.isEmpty() && args[ 0 ].find( "DCOPRef(" ) == 0 ) { - int delimPos = args[ 0 ].tqfindRev( ',' ); + int delimPos = args[ 0 ].findRev( ',' ); if( delimPos == -1 ) { cerr_ << "Error: '" << args[ 0 ] @@ -569,7 +569,7 @@ int runDCOP( QCStringList args, UserList users, Session session, } else if( !sessionName.isEmpty() ) { - if( sessions.tqcontains( sessionName ) ) + if( sessions.contains( sessionName ) ) { sessions.clear(); sessions.append( sessionName ); @@ -625,7 +625,7 @@ int runDCOP( QCStringList args, UserList users, Session session, continue; else { - cerr_ << "WARNING: Cannot tqfind ICE authority file " + cerr_ << "WARNING: Cannot find ICE authority file " << iceFile << "!" << endl << "Please check permissions or set the $ICEAUTHORITY" << " variable manually before" << endl @@ -706,12 +706,12 @@ int runDCOP( QCStringList args, UserList users, Session session, sendUserTime( app ); if( readStdin ) { - QCStringList::Iterator tqreplaceArg = params.end(); + QCStringList::Iterator replaceArg = params.end(); QCStringList::Iterator it = params.begin(); for( ; it != params.end(); ++it ) if( *it == "%1" ) - tqreplaceArg = it; + replaceArg = it; // Read from stdin until EOF and call function for each // read line @@ -719,8 +719,8 @@ int runDCOP( QCStringList args, UserList users, Session session, { TQString buf = cin_.readLine(); - if( tqreplaceArg != params.end() ) - *tqreplaceArg = buf.local8Bit(); + if( replaceArg != params.end() ) + *replaceArg = buf.local8Bit(); if( !buf.isNull() ) { @@ -861,7 +861,7 @@ int main( int argc, char** argv ) if (prog[prog.length()-1] != '*') { // Strip a trailing -<PID> part. - int i = prog.tqfindRev('-'); + int i = prog.findRev('-'); if ((i >= 0) && prog.mid(i+1).toLong()) { prog = prog.left(i); |