diff options
Diffstat (limited to 'kopete/protocols/groupwise/gwcontact.cpp')
-rw-r--r-- | kopete/protocols/groupwise/gwcontact.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kopete/protocols/groupwise/gwcontact.cpp b/kopete/protocols/groupwise/gwcontact.cpp index 0dd78a71..06ac510f 100644 --- a/kopete/protocols/groupwise/gwcontact.cpp +++ b/kopete/protocols/groupwise/gwcontact.cpp @@ -52,7 +52,7 @@ GroupWiseContact::GroupWiseContact( Kopete::Account* account, const TQString &dn : Kopete::Contact( account, GroupWiseProtocol::dnToDotted( dn ), tqparent ), m_objectId( objectId ), m_parentId( parentId ), m_sequence( sequence ), m_actionBlock( 0 ), m_archiving( false ), m_deleting( false ), m_messageReceivedOffline( false ) { - if ( dn.tqfind( '=' ) != -1 ) + if ( dn.find( '=' ) != -1 ) { m_dn = dn; } @@ -96,17 +96,17 @@ void GroupWiseContact::updateDetails( const ContactDetails & details ) TQMap<TQString, TQString>::Iterator it; // work phone number - if ( ( it = m_serverProperties.tqfind( "telephoneNumber" ) ) + if ( ( it = m_serverProperties.find( "telephoneNumber" ) ) != m_serverProperties.end() ) setProperty( protocol()->propPhoneWork, it.data() ); // mobile phone number - if ( ( it = m_serverProperties.tqfind( "mobile" ) ) + if ( ( it = m_serverProperties.find( "mobile" ) ) != m_serverProperties.end() ) setProperty( protocol()->propPhoneMobile, it.data() ); // email - if ( ( it = m_serverProperties.tqfind( "Internet EMail Address" ) ) + if ( ( it = m_serverProperties.find( "Internet EMail Address" ) ) != m_serverProperties.end() ) setProperty( protocol()->propEmail, it.data() ); |