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