idlehomescreen/xmluicontroller/src/aixmluiutils.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 21 Jun 2010 15:27:11 +0300
branchRCL_3
changeset 59 d721605b30d0
parent 0 f72a12da539e
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* Copyright (c) 2005-2007 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:  Inline utilities
*
*/


// This is an utility which absolutely should be in euser lib / e32std.h!
template< class PtrT > inline
PtrT* AiXmlUiController::LeaveIfNull( PtrT* aPtr, TInt aError )
    {
    if ( !aPtr )
        {
        User::Leave( aError );
        }
        
    return aPtr;
    }