equal
deleted
inserted
replaced
789 inline TBool CPbk2FieldListBoxModel::DuplicatesExist( |
789 inline TBool CPbk2FieldListBoxModel::DuplicatesExist( |
790 TPtrC aContent ) |
790 TPtrC aContent ) |
791 { |
791 { |
792 TBool ret = EFalse; |
792 TBool ret = EFalse; |
793 TInt rowsCount = iRows.Count(); |
793 TInt rowsCount = iRows.Count(); |
794 for( TInt i = 0; i < rowsCount && !ret; i++ ) |
794 for (TInt i = 0; i < rowsCount && !ret; i++ ) |
795 { |
795 { |
796 TInt columnsCount = iRows[i]->ColumnCount(); |
796 if ( iRows[i]->At( EContentColumn ).CompareF( aContent ) == 0 ) |
797 for( TInt j = 0; j < columnsCount && !ret; j++ ) |
|
798 { |
797 { |
799 if ( iRows[i]->At(j).CompareF( aContent ) == 0 ) |
798 ret = ETrue; |
800 { |
|
801 ret = ETrue; |
|
802 } |
|
803 } |
799 } |
804 } |
800 } |
805 |
801 |
806 return ret; |
802 return ret; |
807 } |
803 } |
808 |
804 |
809 // -------------------------------------------------------------------------- |
805 // -------------------------------------------------------------------------- |
810 // CPbk2FieldListBoxModel::DuplicatesAddressExist |
806 // CPbk2FieldListBoxModel::DuplicatesAddressExist |