omadrm/drmengine/server/src/drmparentstorage.cpp
changeset 84 b09186059647
parent 23 493788a4a8a4
equal deleted inserted replaced
82:a117e284a2c6 84:b09186059647
     1 /*
     1 /*
     2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2003-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".
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 // INCLUDE FILES
    19 // INCLUDE FILES
       
    20 #include <e32def.h>
    20 #include "drmparentstorage.h"
    21 #include "drmparentstorage.h"
    21 #include "DrmPermission.h"
    22 #include "DrmPermission.h"
    22 #include "drmlog.h"
    23 #include "drmlog.h"
    23 
    24 
    24 
    25 
   183 //
   184 //
   184 CDRMPermissionList& CDRMParentStorage::operator[]( const TDesC8& aCID )
   185 CDRMPermissionList& CDRMParentStorage::operator[]( const TDesC8& aCID )
   185     {
   186     {
   186     TInt pos;
   187     TInt pos;
   187 
   188 
   188     iParentIDs->FindIsq( aCID, pos );
   189     TInt error = iParentIDs->FindIsq( aCID, pos );
       
   190     __ASSERT_ALWAYS( !error && pos >= 0, User::Invariant() );
   189     return *( iParents[ pos ] );
   191     return *( iParents[ pos ] );
   190     }
   192     }
   191 
   193 
   192 // End of File
   194 // End of File