140 // Stop observing the base view, the custom view |
140 // Stop observing the base view, the custom view |
141 // will observe it and report back |
141 // will observe it and report back |
142 // Construction of the iCustomFilteredView should be done in two |
142 // Construction of the iCustomFilteredView should be done in two |
143 // phases. Due to that there is dependencies between views in this |
143 // phases. Due to that there is dependencies between views in this |
144 // and iCustomFilteredView class. |
144 // and iCustomFilteredView class. |
145 iCustomFilteredView = |
145 CCustomFilteredGroupView* customFilteredView = |
146 new (ELeave) CCustomFilteredGroupView( Store(), iFilter, |
146 new (ELeave) CCustomFilteredGroupView( Store(), iFilter, |
147 *this ); |
147 *this ); |
|
148 |
|
149 if ( iCustomFilteredView ) |
|
150 { |
|
151 delete iCustomFilteredView; |
|
152 iCustomFilteredView = NULL; |
|
153 } |
|
154 iCustomFilteredView = customFilteredView; |
|
155 customFilteredView = NULL; |
|
156 |
148 ConstructBaseViewsL( aViewDefinition, *iCustomFilteredView, |
157 ConstructBaseViewsL( aViewDefinition, *iCustomFilteredView, |
149 aViewSortOrder ); |
158 aViewSortOrder ); |
150 |
159 |
151 iCustomFilteredView->ConstructL |
160 iCustomFilteredView->ConstructL |
152 ( aViewDefinition, *this, *iSortOrder, *iView ); |
161 ( aViewDefinition, *this, *iSortOrder, *iView ); |