equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
850 const TInt numInitial = numSettings > KCentRepFindBufSize ? KCentRepFindBufSize : numSettings; |
850 const TInt numInitial = numSettings > KCentRepFindBufSize ? KCentRepFindBufSize : numSettings; |
851 RArray<TUint32> settingsToSend; |
851 RArray<TUint32> settingsToSend; |
852 CleanupClosePushL(settingsToSend); |
852 CleanupClosePushL(settingsToSend); |
853 |
853 |
854 //reserve memory for everything that needs to be added to the array |
854 //reserve memory for everything that needs to be added to the array |
855 settingsToSend.Reserve(numInitial); |
855 settingsToSend.ReserveL(numInitial + 1); // the plus one is for the numSettings value |
856 |
856 |
857 //first append the number of found settings |
857 //first append the number of found settings |
858 settingsToSend.AppendL(numSettings); |
858 settingsToSend.AppendL(numSettings); |
859 |
859 |
860 //now append up to KCentRepFindBufSize settings |
860 //now append up to KCentRepFindBufSize settings |