os/security/cryptoservices/certificateandkeymgmt/tpkixcert_tef/src/cleanuputils.inl
First public contribution.
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
20 inline void CleanupResetAndDestroy<T>::PushL(T& aRef)
22 CleanupStack::PushL(TCleanupItem(&ResetAndDestroy,&aRef));
26 void CleanupResetAndDestroy<T>::ResetAndDestroy(TAny *aPtr)
28 static_cast<T*>(aPtr)->ResetAndDestroy();
32 inline void CleanupResetAndDestroyPushL(T& aRef)
34 CleanupResetAndDestroy<T>::PushL(aRef);