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". |
941 @param aRegistrationFile The function takes ownership of the HBufC. |
941 @param aRegistrationFile The function takes ownership of the HBufC. |
942 @internalComponent |
942 @internalComponent |
943 */ |
943 */ |
944 EXPORT_C void CApaAppList::AddForcedRegistrationL(const TDesC& aRegistrationFile) |
944 EXPORT_C void CApaAppList::AddForcedRegistrationL(const TDesC& aRegistrationFile) |
945 { |
945 { |
946 TInt err = iForcedRegistrations->InsertIsqL(aRegistrationFile, ECmpFolded); |
946 TRAPD(err, iForcedRegistrations->InsertIsqL(aRegistrationFile, ECmpFolded)); |
947 if (err != KErrAlreadyExists) // We silently ignore attempts to insert duplicates |
947 if (err != KErrAlreadyExists) // We silently ignore attempts to insert duplicates |
948 User::LeaveIfError(err); |
948 User::LeaveIfError(err); |
949 |
949 |
950 } //lint !e818 Suppress pointer parameter 'aRegistrationFile' could be declared as pointing to const |
950 } //lint !e818 Suppress pointer parameter 'aRegistrationFile' could be declared as pointing to const |
951 |
951 |