xdmprotocols/XcapProtocol/src/XcapDocument.cpp
branchRCL_3
changeset 10 96b99892dd80
parent 0 c8caa15ef882
equal deleted inserted replaced
8:aca99fb8a3dd 10:96b99892dd80
   906 void CXcapDocument::DequeueAll()
   906 void CXcapDocument::DequeueAll()
   907     {
   907     {
   908     #ifdef _DEBUG
   908     #ifdef _DEBUG
   909         iXcapProtocol.WriteToLog( _L8( "CXcapDocument::DequeueAll()" ) );
   909         iXcapProtocol.WriteToLog( _L8( "CXcapDocument::DequeueAll()" ) );
   910     #endif
   910     #endif
   911     TInt count = iChangeRequests.Count();
   911     
   912     for( TInt i = 0;i < count;i++ )
   912     while (iChangeRequests.Count() )
   913     	{
   913     	{
   914     	MXdmOperation* request = iChangeRequests[i];
   914     	MXdmOperation* request = iChangeRequests[0];
   915     	iChangeRequests.Remove( i );
   915     	iChangeRequests.Remove( 0 );
   916     	request->Destroy();
   916     	request->Destroy();
   917     	request = NULL;
   917     	request = NULL;
   918     	} 
   918     	} 
   919     }
   919     }
   920       
   920