diff -r e686773b3f54 -r 0ba2181d7c28 phonebookengines/contactsmodel/cntmodel/src/rcntmodel.cpp --- a/phonebookengines/contactsmodel/cntmodel/src/rcntmodel.cpp Tue Feb 02 10:12:17 2010 +0200 +++ b/phonebookengines/contactsmodel/cntmodel/src/rcntmodel.cpp Fri Mar 19 09:27:18 2010 +0200 @@ -1,17 +1,20 @@ -// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). -// All rights reserved. -// This component and the accompanying materials are made available -// under the terms of "Eclipse Public License v1.0" -// which accompanies this distribution, and is available -// at the URL "http://www.eclipse.org/legal/epl-v10.html". -// -// Initial Contributors: -// Nokia Corporation - initial contribution. -// -// Contributors: -// -// Description: -// +/* +* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + /** @file @@ -25,10 +28,10 @@ #include #include "rcntmodel.h" -#include "persistencelayer.h" // For MLplCollection. -#include "CCntNotificationMonitor.h" -#include "ccontactprivate.h" // For MProgressEventHander. -#include "CCntPackager.h" +#include "persistencelayer.h" // for mlplcollection. +#include "ccntnotificationmonitor.h" +#include "ccontactprivate.h" // for mprogresseventhander. +#include "ccntpackager.h" #include @@ -1451,7 +1454,6 @@ return idArray; } - /** Get a collection of contact IDs using the specified collection parameters. @@ -1855,11 +1857,7 @@ // Append to the old array if it was not NULL. for(TInt i=0;iCount();++i) { - if(aOrigIdArray->Find((*newIdArray)[i]) == KErrNotFound) - { - //Add only when we are sure that this ID has not been added to this array before. - aOrigIdArray->AddL((*newIdArray)[i]); - } + aOrigIdArray->AddL((*newIdArray)[i]); } CleanupStack::PopAndDestroy(newIdArray); }