summaryrefslogtreecommitdiffstats
path: root/kbugbuster/backend/person.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-12 01:36:19 +0000
commit99a2774ca6f1cab334de5d43fe36fc44ae889a4c (patch)
treeeff34cf0762227f6baf2a93e8fef48d4bed2651c /kbugbuster/backend/person.cpp
parent1c104292188541106338d4940b0f04beeb4301a0 (diff)
downloadtdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.tar.gz
tdesdk-99a2774ca6f1cab334de5d43fe36fc44ae889a4c.zip
TQt4 convert kdesdk
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1236185 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbugbuster/backend/person.cpp')
-rw-r--r--kbugbuster/backend/person.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kbugbuster/backend/person.cpp b/kbugbuster/backend/person.cpp
index 40cf72b7..368ea07c 100644
--- a/kbugbuster/backend/person.cpp
+++ b/kbugbuster/backend/person.cpp
@@ -4,7 +4,7 @@
Person::Person( const TQString &fullName )
{
- int emailPos = fullName.find( '<' );
+ int emailPos = fullName.tqfind( '<' );
if ( emailPos < 0 ) {
email = fullName;
} else {
@@ -41,10 +41,10 @@ Person Person::parseFromString( const TQString &_str )
TQString str = _str;
- int ltPos = str.find( '<' );
+ int ltPos = str.tqfind( '<' );
if ( ltPos != -1 )
{
- int gtPos = str.find( '>', ltPos );
+ int gtPos = str.tqfind( '>', ltPos );
if ( gtPos != -1 )
{
res.name = str.left( ltPos - 1 );
@@ -52,16 +52,16 @@ Person Person::parseFromString( const TQString &_str )
}
}
- int atPos = str.find( '@' );
- int spacedAtPos = str.find( TQString::fromLatin1( " at " ) );
+ int atPos = str.tqfind( '@' );
+ int spacedAtPos = str.tqfind( TQString::tqfromLatin1( " at " ) );
if ( atPos == -1 && spacedAtPos != -1 )
- str.replace( spacedAtPos, 4, TQString::fromLatin1( "@" ) );
+ str.tqreplace( spacedAtPos, 4, TQString::tqfromLatin1( "@" ) );
- int spacePos = str.find( ' ' );
+ int spacePos = str.tqfind( ' ' );
while ( spacePos != -1 )
{
str[ spacePos ] = '.';
- spacePos = str.find( ' ', spacePos );
+ spacePos = str.tqfind( ' ', spacePos );
}
res.email = str;