omadrm/drmengine/roapstorage/src/DRMDomainContext.cpp
changeset 84 b09186059647
parent 0 95b198f216e5
equal deleted inserted replaced
82:a117e284a2c6 84:b09186059647
     1 /*
     1 /*
     2 * Copyright (c) 2004-2008 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".
   440     for( TInt i = 0; i < count; i++ )
   440     for( TInt i = 0; i < count; i++ )
   441         {
   441         {
   442         // Read the ContentID
   442         // Read the ContentID
   443         dataPart = HBufC8::NewL( aStream, KMaxUrlLength );
   443         dataPart = HBufC8::NewL( aStream, KMaxUrlLength );
   444 
   444 
       
   445         // Put dataPart to cleanup stack
       
   446         CleanupStack::PushL( dataPart );
       
   447         
   445         // assign the new content id
   448         // assign the new content id
   446         iDomainKeys.AppendL( dataPart );
   449         iDomainKeys.AppendL( dataPart );
       
   450         
       
   451         // Pop dataPart from cleanup stack
       
   452         CleanupStack::Pop( dataPart );
   447         }
   453         }
   448 
   454 
   449     // Read the rights issuer ID
   455     // Read the rights issuer ID
   450     aStream >> iRightsIssuerID;
   456     aStream >> iRightsIssuerID;
   451 
   457