phoneengine/PhoneCntFinder/ContactService/src/CPhCntContactManager.cpp
branchRCL_3
changeset 14 b8d67d6176f5
parent 12 b68fcd923911
child 23 40a3f856b14d
--- a/phoneengine/PhoneCntFinder/ContactService/src/CPhCntContactManager.cpp	Tue May 25 12:41:50 2010 +0300
+++ b/phoneengine/PhoneCntFinder/ContactService/src/CPhCntContactManager.cpp	Wed Jun 09 09:41:11 2010 +0300
@@ -118,13 +118,16 @@
     MVPbkContactFindObserver& aObserver,
     TBool aRemoveDuplicates )
     {
+    TUint32 dupesMatch =
+        CVPbkPhoneNumberMatchStrategy::EVPbkDuplicatedContactsMatchFlag |
+        CVPbkPhoneNumberMatchStrategy::EVPbkBestMatchingFlag;
+    TUint32 noDupesMatch = CVPbkPhoneNumberMatchStrategy::EVPbkBestMatchingFlag;
+    
     return CPhCntContactMatchStrategy::NewL(
         *iContactManager,
         *iContactStoreUris,
         aObserver,
-        aRemoveDuplicates ?
-        CVPbkPhoneNumberMatchStrategy::EVPbkDuplicatedContactsMatchFlag :
-        CVPbkPhoneNumberMatchStrategy::EVPbkMatchFlagsNone );
+        aRemoveDuplicates ? dupesMatch : noDupesMatch );
     }
 
 // ---------------------------------------------------------------------------