sl@0: // Copyright (c) 1994-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // e32\euser\cbase\ub_utl.cpp sl@0: // sl@0: // sl@0: sl@0: #include "ub_std.h" sl@0: sl@0: _LIT(KE32UserCBase, "E32USER-CBase"); sl@0: GLDEF_C void Panic(TBasePanic aPanic) sl@0: // sl@0: // Panic the process with E32USER-ADT as the category. sl@0: // sl@0: { sl@0: sl@0: User::Panic(KE32UserCBase, aPanic); sl@0: } sl@0: sl@0: sl@0: sl@0: sl@0: /** sl@0: Virtual destructor. sl@0: sl@0: Enables any derived object to be deleted through a CBase* pointer. sl@0: */ sl@0: EXPORT_C CBase::~CBase() sl@0: { sl@0: } sl@0: sl@0: sl@0: sl@0: /** sl@0: Extension function sl@0: sl@0: sl@0: */ sl@0: EXPORT_C TInt CBase::Extension_(TUint, TAny*& a0, TAny*) sl@0: { sl@0: a0 = NULL; sl@0: return KErrExtensionNotSupported; sl@0: } sl@0: sl@0: sl@0: sl@0: sl@0: /** sl@0: Deletes the specified object. sl@0: sl@0: @param aPtr Pointer to the CBase derived object to be deleted. sl@0: */ sl@0: EXPORT_C void CBase::Delete(CBase* aPtr) sl@0: { sl@0: delete aPtr; sl@0: } sl@0: