messagingapp/msgappfw/server/src/ccsconversationcontact.cpp
changeset 37 518b245aa84c
parent 25 84d9eb65b26f
equal deleted inserted replaced
25:84d9eb65b26f 37:518b245aa84c
    98 // ----------------------------------------------------------------------------
    98 // ----------------------------------------------------------------------------
    99 void
    99 void
   100 CCsConversationContact::SetDisplayNameL(
   100 CCsConversationContact::SetDisplayNameL(
   101         const TDesC& aDisplayName)
   101         const TDesC& aDisplayName)
   102     {
   102     {
   103     if( &aDisplayName )
       
   104         {
       
   105         TRAPD(error, iDisplayName = aDisplayName.AllocL());
   103         TRAPD(error, iDisplayName = aDisplayName.AllocL());
   106         if(error != KErrNone)
   104         if(error != KErrNone)
   107             {
   105             {
   108             // handle error
   106             // handle error
   109             // call panic
   107             // call panic
   110             PRINT1 ( _L("CCsConversationContact::SetFirstNameL - Error:%d"),
   108             PRINT1 ( _L("CCsConversationContact::SetFirstNameL - Error:%d"),
   111                     error );
   109                     error );
   112             }
   110             }
   113         }
   111   
   114     }
   112     }
   115 
   113 
   116 // ----------------------------------------------------------------------------
   114 // ----------------------------------------------------------------------------
   117 // CCsConversationContact::GetContactId
   115 // CCsConversationContact::GetContactId
   118 // get the phonebook Contact Id link for the conversation
   116 // get the phonebook Contact Id link for the conversation