diff -r 36f374c67aa8 -r 12db4185673b messagingapp/msgui/msgaudiofetcher/src/msgaudioselectionengine.cpp --- a/messagingapp/msgui/msgaudiofetcher/src/msgaudioselectionengine.cpp Tue Jul 06 14:12:40 2010 +0300 +++ b/messagingapp/msgui/msgaudiofetcher/src/msgaudioselectionengine.cpp Wed Aug 18 09:45:25 2010 +0300 @@ -29,7 +29,7 @@ // CONSTANTS _LIT( KAmrMime, "audio/amr" ); -MsgAudioSelectionEngine::MsgAudioSelectionEngine() +MsgAudioSelectionEngine::MsgAudioSelectionEngine():iQuery(NULL) { } @@ -43,7 +43,7 @@ void MsgAudioSelectionEngine::CreateMetaDataSession() { - TRAP_IGNORE(iSession = CMdESession::NewL(*this)); + QT_TRAP_THROWING(iSession = CMdESession::NewL(*this)); } @@ -100,7 +100,7 @@ if (iSessionOpen) { TUint32 notificationType = ENotifyAdd | ENotifyModify | ENotifyRemove; - User::LeaveIfNull(iSession); + q_check_ptr(iSession); CMdENamespaceDef& defNS = iSession->GetDefaultNamespaceDefL(); iSession->AddObjectObserverL(*this, 0, notificationType, &defNS); iSession->AddObjectPresentObserverL(*this); @@ -201,13 +201,13 @@ { if (!iSession || !iSessionOpen) { - User::Leave(KErrDisconnected); + qt_symbian_throwIfError (KErrDisconnected); } } CMdEPropertyDef& MsgAudioSelectionEngine::PropertyDefL(TInt aAttr) { - User::LeaveIfNull(iSession); + q_check_ptr(iSession); return PropertyDefL(iSession, aAttr); } @@ -253,7 +253,7 @@ } else { - User::Leave(KErrNotSupported); + qt_symbian_throwIfError(KErrNotSupported); } return objectDef.GetPropertyDefL(MdeConstants::Object::KTitleProperty);