equal
deleted
inserted
replaced
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 |