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/dcopidl2cpp/stub.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/dcopidl2cpp/stub.cpp')
-rw-r--r-- | dcop/dcopidl2cpp/stub.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dcop/dcopidl2cpp/stub.cpp b/dcop/dcopidl2cpp/stub.cpp index ab9165d4e..887945262 100644 --- a/dcop/dcopidl2cpp/stub.cpp +++ b/dcop/dcopidl2cpp/stub.cpp @@ -54,7 +54,7 @@ void generateStub( const TQString& idl, const TQString& filename, TQDomElement d str << endl; TQString ifdefstring = idl.upper(); - int pos = idl.tqfindRev( '.' ); + int pos = idl.findRev( '.' ); if ( pos != -1 ) ifdefstring = ifdefstring.left( pos ); @@ -99,7 +99,7 @@ void generateStub( const TQString& idl, const TQString& filename, TQDomElement d n = n.nextSibling().toElement(); } - // tqfind dcop parent ( rightmost super class ) + // find dcop parent ( rightmost super class ) TQString DCOPParent; for( ; !n.isNull(); n = n.nextSibling().toElement() ) { if ( n.tagName() == "SUPER" ) @@ -107,13 +107,13 @@ void generateStub( const TQString& idl, const TQString& filename, TQDomElement d } if( DCOPParent != "DCOPObject" ) { // we need to include the .h file for the base stub - if( all_includes.tqcontains( DCOPParent + ".h" )) + if( all_includes.contains( DCOPParent + ".h" )) str << "#include <" << DCOPParent << "_stub.h>" << endl; - else if( all_includes.tqcontains( DCOPParent.lower() + ".h" )) + else if( all_includes.contains( DCOPParent.lower() + ".h" )) str << "#include <" << DCOPParent.lower() << "_stub.h>" << endl; else {// damn ... let's assume it's the last include TQString stub_h = all_includes.last(); - unsigned int pos = stub_h.tqfind( ".h" ); + unsigned int pos = stub_h.find( ".h" ); if( pos > 0 ) { stub_h = stub_h.remove( pos, 100000 ); str << "#include <" << stub_h << "_stub.h>" << endl; @@ -128,7 +128,7 @@ void generateStub( const TQString& idl, const TQString& filename, TQDomElement d int namespace_count = 0; TQString namespace_tmp = className; for(;;) { - int pos = namespace_tmp.tqfind( "::" ); + int pos = namespace_tmp.find( "::" ); if( pos < 0 ) { className = namespace_tmp; break; |