javauis/lcdui_akn/lcdui/src/CMIDForm.cpp
branchRCL_3
changeset 18 9ac0a0a7da70
parent 17 0fd27995241b
child 23 e5618cc85d74
equal deleted inserted replaced
17:0fd27995241b 18:9ac0a0a7da70
  3645 // effects:  Deletes all rows in the Form. It doesn't affect the items that have
  3645 // effects:  Deletes all rows in the Form. It doesn't affect the items that have
  3646 //           been added to the form.
  3646 //           been added to the form.
  3647 // modifies: CMIDForm, CMIDFormRow
  3647 // modifies: CMIDForm, CMIDFormRow
  3648 void CMIDForm::DeleteRows()
  3648 void CMIDForm::DeleteRows()
  3649 {
  3649 {
       
  3650     // By deleting rows we are losing pointers to original items.
       
  3651     // To avoid any problems with using iPointedControl, which
       
  3652     // could points to invalid object (e.g. used in
       
  3653     // CMIDForm::HandleHighlightTimer or
       
  3654     // in CMIDForm::HandlePhysicsPointerEventL),
       
  3655     // iPointedControl must be set to NULL.
       
  3656     iPointedControl = NULL;
       
  3657 
  3650     for (TInt i=0; i < iRows.Count(); i++)
  3658     for (TInt i=0; i < iRows.Count(); i++)
  3651     {
  3659     {
  3652         delete iRows[i];
  3660         delete iRows[i];
  3653     }
  3661     }
  3654 
  3662