diff -r 1a2a00e78665 -r f62f87b200ec xcfw/src/xcfwpanic.cpp --- a/xcfw/src/xcfwpanic.cpp Tue Feb 02 00:23:10 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,63 +0,0 @@ -/* -* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Implements XCFW panic handling. -* -*/ - - - -// INCLUDES -#include "xcfwpanic.h" - -// ----------------------------------------------------------------------------- -// TXCFWPanic::CheckPanic -// Panic with given code if aOK == EFalse -// ----------------------------------------------------------------------------- -// -void TXCFWPanic::CheckPanic( TBool aOK, TInt aReason ) - { -#ifdef __XCFW_MODULE_TEST -#pragma BullseyeCoverage off -#endif - if ( !aOK ) - { - _LIT( KPanicText, "XML Content Framework" ); - User::Panic( KPanicText, aReason ); - } -#ifdef __XCFW_MODULE_TEST -#pragma BullseyeCoverage on -#endif - } - -// ----------------------------------------------------------------------------- -// TXCFWPanic::CheckLeaveL -// Leave with given code if aOK == EFalse -// ----------------------------------------------------------------------------- -// -void TXCFWPanic::CheckLeaveL( TBool aOK, TInt aReason ) - { -#ifdef __XCFW_MODULE_TEST -#pragma BullseyeCoverage off -#endif - if ( !aOK ) - { - User::Leave( aReason ); - } -#ifdef __XCFW_MODULE_TEST -#pragma BullseyeCoverage on -#endif - } - - -// End of file