symport/e32/euser/cbase/ub_utl.cpp
changeset 1 0a7b44b10206
child 2 806186ab5e14
equal deleted inserted replaced
0:c55016431358 1:0a7b44b10206
       
     1 // Copyright (c) 1994-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // e32\euser\cbase\ub_utl.cpp
       
    15 // 
       
    16 //
       
    17 
       
    18 #include "ub_std.h"
       
    19 
       
    20 _LIT(KE32UserCBase, "E32USER-CBase");
       
    21 GLDEF_C void Panic(TBasePanic aPanic)
       
    22 //
       
    23 // Panic the process with E32USER-ADT as the category.
       
    24 //
       
    25 	{
       
    26 
       
    27 	User::Panic(KE32UserCBase, aPanic);
       
    28 	}
       
    29 
       
    30 
       
    31 
       
    32 
       
    33 /**
       
    34 Virtual destructor.
       
    35 
       
    36 Enables any derived object to be deleted through a CBase* pointer.
       
    37 */
       
    38 EXPORT_C CBase::~CBase()
       
    39 	{
       
    40 	}
       
    41 
       
    42 
       
    43 
       
    44 /**
       
    45 Extension function
       
    46 
       
    47 
       
    48 */
       
    49 EXPORT_C TInt CBase::Extension_(TUint, TAny*& a0, TAny*)
       
    50 	{
       
    51 	a0 = NULL;
       
    52 	return KErrExtensionNotSupported;
       
    53 	}
       
    54 
       
    55 
       
    56 
       
    57 
       
    58 /**
       
    59 Deletes the specified object.
       
    60 
       
    61 @param aPtr Pointer to the CBase derived object to be deleted.
       
    62 */
       
    63 EXPORT_C void CBase::Delete(CBase* aPtr)
       
    64 	{
       
    65 	delete aPtr;
       
    66 	}
       
    67