diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch) | |
tree | 766a8ad7939fcf3eec534184c36bd0e0f80489e2 /korn/imap_proto.cpp | |
parent | 469cc56a805bd3d6940d54adbef554877c29853c (diff) | |
download | tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.tar.gz tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korn/imap_proto.cpp')
-rw-r--r-- | korn/imap_proto.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/korn/imap_proto.cpp b/korn/imap_proto.cpp index 7d0f9873a..304fed5ed 100644 --- a/korn/imap_proto.cpp +++ b/korn/imap_proto.cpp @@ -65,34 +65,34 @@ void Imap_Protocol::configFields( TQPtrVector< TQWidget >* vector, const TQObjec void Imap_Protocol::readEntries( TQMap< TQString, TQString >* map, TQMap< TQString, TQString > *metadata ) const { - if( map->tqcontains( "ssl" ) && *map->tqfind( "ssl" ) == "true" ) + if( map->contains( "ssl" ) && *map->find( "ssl" ) == "true" ) map->insert( "encryption", "ssl" ); - if( metadata->tqcontains( "tls" ) ) - map->insert( "encryption", TQString( "tls=%1" ).tqarg( *metadata->tqfind( "tls" ) ) ); - if( metadata->tqcontains( "auth" ) ) - map->insert( "auth", TQString( "auth=%1" ).tqarg( *metadata->tqfind( "auth" ) ) ); + if( metadata->contains( "tls" ) ) + map->insert( "encryption", TQString( "tls=%1" ).tqarg( *metadata->find( "tls" ) ) ); + if( metadata->contains( "auth" ) ) + map->insert( "auth", TQString( "auth=%1" ).tqarg( *metadata->find( "auth" ) ) ); } void Imap_Protocol::writeEntries( TQMap< TQString, TQString >* map ) const { TQString metadata; - if( map->tqcontains( "encryption" ) ) + if( map->contains( "encryption" ) ) { - if( *map->tqfind( "encryption" ) == "ssl" ) + if( *map->find( "encryption" ) == "ssl" ) map->insert( "ssl", "true" ); else { map->insert( "ssl", "false" ); - metadata += *map->tqfind( "encryption" ); + metadata += *map->find( "encryption" ); } map->erase( "encryption" ); } - if( map->tqcontains( "auth" ) ) + if( map->contains( "auth" ) ) { if( !metadata.isEmpty() ) metadata += ","; - metadata += *map->tqfind( "auth" ); + metadata += *map->find( "auth" ); map->erase( "auth" ); } |