equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
99 // |
99 // |
100 CDRMRightsData* CDRMRightsData::OpenLC( const TFileName& aRightsFile, |
100 CDRMRightsData* CDRMRightsData::OpenLC( const TFileName& aRightsFile, |
101 RFs& aFileServer ) |
101 RFs& aFileServer ) |
102 { |
102 { |
103 CDRMCommonData* common = CDRMCommonData::NewL(); |
103 CDRMCommonData* common = CDRMCommonData::NewL(); |
104 |
104 CleanupStack::PushL( common ); |
105 CDRMRightsData* self = new( ELeave ) CDRMRightsData( common, aFileServer ); |
105 CDRMRightsData* self = new( ELeave ) CDRMRightsData( common, aFileServer ); |
|
106 CleanupStack::Pop( common ); |
106 CleanupStack::PushL( self ); |
107 CleanupStack::PushL( self ); |
107 self->ConstructL( aRightsFile ); |
108 self->ConstructL( aRightsFile ); |
108 |
109 |
109 return self; |
110 return self; |
110 }; |
111 }; |