photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlerrename.cpp
branchRCL_3
changeset 13 bcb43dc84c44
parent 0 4e91876724a2
child 15 191387a8b767
equal deleted inserted replaced
12:ce1c7ad1f18b 13:bcb43dc84c44
   256     // Used here to avoid a trap and still have safe cleanup    
   256     // Used here to avoid a trap and still have safe cleanup    
   257     TGlxFetchContextRemover contextRemover( context, aList );
   257     TGlxFetchContextRemover contextRemover( context, aList );
   258     // put to cleanupstack as cleanupstack is emptied before stack objects
   258     // put to cleanupstack as cleanupstack is emptied before stack objects
   259     // are deleted
   259     // are deleted
   260     CleanupClosePushL( contextRemover );
   260     CleanupClosePushL( contextRemover );
   261 	// Yuck - a leave and a return code!
   261 	// Yuck - a leave and a return code
   262 	// EFalse => don't show a progress dialog
   262 	// EFalse => don't show a progress dialog
   263     TInt err = GlxAttributeRetriever::RetrieveL( *context, aList, EFalse );
   263     TInt err = GlxAttributeRetriever::RetrieveL( *context, aList, EFalse );
   264     // Using a distinct error value as "LeaveIfError( FuncL() );" looks bad
   264     // Using a distinct error value as "LeaveIfError( FuncL() );" looks bad
   265     User::LeaveIfError( err );
   265     User::LeaveIfError( err );
   266     // context off the list
   266     // context off the list