phonebookengines/VirtualPhonebook/VPbkCntModel/src/CContactIdConverter.cpp
branchRCL_3
changeset 14 81f8547efd4f
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
equal deleted inserted replaced
3:04ab22b956c2 14:81f8547efd4f
    64     }
    64     }
    65     
    65     
    66 TInt32 CContactIdConverter::LinkToIdentifier( const MVPbkContactLink& aLink ) const
    66 TInt32 CContactIdConverter::LinkToIdentifier( const MVPbkContactLink& aLink ) const
    67     {
    67     {
    68     TInt32 result = KNullContactId;
    68     TInt32 result = KNullContactId;
    69     if ( &aLink.ContactStore() == &iContactStore )
    69     if ( &aLink && &aLink.ContactStore() == &iContactStore )
    70         {
    70         {
    71         const CContactLink& link = static_cast<const CContactLink&>( aLink );
    71         const CContactLink& link = static_cast<const CContactLink&>( aLink );
    72         result = link.ContactId();
    72         result = link.ContactId();
    73         }
    73         }
    74     return result;
    74     return result;