summaryrefslogtreecommitdiffstats
path: root/kode/kodemain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kode/kodemain.cpp')
-rw-r--r--kode/kodemain.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kode/kodemain.cpp b/kode/kodemain.cpp
index dcc073ed..63746eff 100644
--- a/kode/kodemain.cpp
+++ b/kode/kodemain.cpp
@@ -167,14 +167,14 @@ int addProperty( KCmdLineArgs *args )
// out += line + "\n";
switch( state ) {
case FindClass:
-// if ( line.tqfind( TQRegExp( className ) ) >= 0 ) {
- if ( line.tqfind( TQRegExp( "^\\s*class\\s+" + className ) ) >= 0 ) {
+// if ( line.find( TQRegExp( className ) ) >= 0 ) {
+ if ( line.find( TQRegExp( "^\\s*class\\s+" + className ) ) >= 0 ) {
kdDebug() << " FOUND CLASS" << endl;
state = FindConstructor;
}
break;
case FindConstructor:
- if ( line.tqfind( TQRegExp( "^\\s*" + className + "\\s*\\(" ) ) >= 0 ) {
+ if ( line.find( TQRegExp( "^\\s*" + className + "\\s*\\(" ) ) >= 0 ) {
kdDebug() << " FOUND CONSTRUCTOR" << endl;
out += readAhead;
readAhead = TQString();
@@ -212,9 +212,9 @@ int addProperty( KCmdLineArgs *args )
}
}
}
- } else if ( line.tqfind( TQRegExp( "\\s*protected" ) ) >= 0 ) {
+ } else if ( line.find( TQRegExp( "\\s*protected" ) ) >= 0 ) {
state = FindPrivate;
- } else if ( line.tqfind( TQRegExp( "\\s*private" ) ) >= 0 ) {
+ } else if ( line.find( TQRegExp( "\\s*private" ) ) >= 0 ) {
if ( accessor.isEmpty() ) {
addPropertyFunctions( out, type, name );
out += readAhead;
@@ -235,7 +235,7 @@ int addProperty( KCmdLineArgs *args )
}
break;
case FindPrivate:
- if ( line.tqfind( TQRegExp( "\\s*private" ) ) >= 0 ) {
+ if ( line.find( TQRegExp( "\\s*private" ) ) >= 0 ) {
if ( accessor.isEmpty() ) {
out += readAhead;
readAhead = TQString();
@@ -248,7 +248,7 @@ int addProperty( KCmdLineArgs *args )
break;
case FindVariables:
{
- if ( line.tqfind( "m" + accessor.lower(), 0, false ) >= 0 ) {
+ if ( line.find( "m" + accessor.lower(), 0, false ) >= 0 ) {
out += readAhead;
readAhead = TQString();
addPropertyVariable( out, type, name );
@@ -309,8 +309,8 @@ int codify( KCmdLineArgs *args )
TQTextStream ts( &f );
TQString line;
while( !( line = ts.readLine() ).isNull() ) {
- line.tqreplace( "\\", "\\\\" );
- line.tqreplace( "\"", "\\\"" );
+ line.replace( "\\", "\\\\" );
+ line.replace( "\"", "\\\"" );
line = "code += \"" + line;
line.append( "\";" );
std::cout << line.local8Bit().data() << std::endl;
@@ -374,7 +374,7 @@ int create( KCmdLineArgs *args )
KABC::Addressee::List as =
KABC::StdAddressBook::self()->findByEmail( authorEmail );
if ( as.isEmpty() ) {
- kdDebug() << "Unable to tqfind '" << authorEmail << "' in address book."
+ kdDebug() << "Unable to find '" << authorEmail << "' in address book."
<< endl;
} else {
a = as.first();