predictivesearch/PcsUtils/src/CPsData.cpp
branchRCL_3
changeset 35 4ae315f230bc
parent 15 e8e3147d53eb
child 64 c1e8ba0c2b16
--- a/predictivesearch/PcsUtils/src/CPsData.cpp	Tue May 11 16:00:21 2010 +0300
+++ b/predictivesearch/PcsUtils/src/CPsData.cpp	Tue May 25 12:26:45 2010 +0300
@@ -336,12 +336,13 @@
 // ----------------------------------------------------------------------------
 EXPORT_C TBool CPsData::CompareById(const CPsData& aObject1, const CPsData& aObject2)
 {
-	if(aObject1.Id() == aObject2.Id())
-	{
-		return ETrue;
-	}
-	
-	return EFalse;
+    // Both Id() and UriId() must match if data objects represent the same contact.    
+    // Values of Id() are guaranteed to be unique only within one store. 
+    if ( aObject1.Id() == aObject2.Id() && aObject1.UriId() == aObject2.UriId() )  
+        {      
+            return ETrue;       
+        }        
+    return EFalse;
 }