diff -r f92a4f87e424 -r 012cc2ee6408 usbmgmt/usbmgr/device/classcontroller/SRC/CUsbClassControllerIterator.cpp --- a/usbmgmt/usbmgr/device/classcontroller/SRC/CUsbClassControllerIterator.cpp Tue Aug 31 17:01:47 2010 +0300 +++ b/usbmgmt/usbmgr/device/classcontroller/SRC/CUsbClassControllerIterator.cpp Wed Sep 01 12:35:00 2010 +0100 @@ -1,5 +1,5 @@ /* -* Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 1997-2009 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" @@ -24,13 +24,11 @@ #include #include -#include "OstTraceDefinitions.h" -#ifdef OST_TRACE_COMPILER_IN_USE -#include "CUsbClassControllerIteratorTraces.h" + +#ifdef __FLOG_ACTIVE +_LIT8(KLogComponent, "USBSVR"); #endif - - // Panic category only used in debug builds #ifdef _DEBUG _LIT( KUsbCcIteratorPanicCategory, "UsbCcIterator" ); @@ -132,13 +130,10 @@ */ EXPORT_C CUsbClassControllerBase* CUsbClassControllerIterator::Current() { -#ifdef _DEBUG - if(!((iClassControllerIndex >= 0) && (iClassControllerIndex < iClassControllerArray.Count()))) - { - OstTrace1( TRACE_FATAL, CUSBCLASSCONTROLLERITERATOR_CURRENT, "CUsbClassControllerIterator::Current;panic reason=%d", EIndexOutOfRange ); - User::Panic(KUsbCcIteratorPanicCategory, EIndexOutOfRange ); - } -#endif + __ASSERT_DEBUG((iClassControllerIndex >= 0) && + (iClassControllerIndex < iClassControllerArray.Count()), + _USB_PANIC(KUsbCcIteratorPanicCategory, EIndexOutOfRange)); + return iClassControllerArray[iClassControllerIndex]; }