equal
deleted
inserted
replaced
164 // --------------------------------------------------------------------------- |
164 // --------------------------------------------------------------------------- |
165 // |
165 // |
166 TInt CBubbleOutlookFiveLined::CountComponentControls() const |
166 TInt CBubbleOutlookFiveLined::CountComponentControls() const |
167 { |
167 { |
168 TInt amount = 0; |
168 TInt amount = 0; |
169 |
169 |
170 if ( iNumberType ) |
170 if ( iNumberType ) |
171 { |
171 { |
172 amount++; |
172 amount++; |
173 } |
173 } |
174 |
174 |
236 // |
236 // |
237 // --------------------------------------------------------------------------- |
237 // --------------------------------------------------------------------------- |
238 // |
238 // |
239 CCoeControl* CBubbleOutlookFiveLined::ComponentControl(TInt aIndex) const |
239 CCoeControl* CBubbleOutlookFiveLined::ComponentControl(TInt aIndex) const |
240 { |
240 { |
241 |
|
242 TInt amount = -1; |
241 TInt amount = -1; |
243 |
242 // coverity[var_compare_op] |
244 if ( iNumberType ) |
243 if ( iNumberType ) |
245 { |
244 { |
246 amount++; |
245 amount++; |
247 } |
246 } |
248 |
247 |
249 if ( aIndex == amount ) |
248 if ( aIndex == amount ) |
250 { |
249 { |
|
250 // coverity[var_deref_model] |
251 return iNumberType->Control(); |
251 return iNumberType->Control(); |
252 } |
252 } |
253 |
253 |
254 if ( iCyphOffImage ) |
254 if ( iCyphOffImage ) |
255 { |
255 { |
326 amount++; |
326 amount++; |
327 } |
327 } |
328 |
328 |
329 if ( aIndex == amount ) |
329 if ( aIndex == amount ) |
330 { |
330 { |
|
331 // coverity[var_deref_model] |
331 return iSmallCallIndication->Control(); |
332 return iSmallCallIndication->Control(); |
332 } |
333 } |
333 |
334 |
334 if ( iTypeIndication1 ) |
335 if ( iTypeIndication1 ) |
335 { |
336 { |
356 amount++; |
357 amount++; |
357 } |
358 } |
358 |
359 |
359 if ( aIndex == amount ) |
360 if ( aIndex == amount ) |
360 { |
361 { |
|
362 // coverity[var_deref_model] |
361 return iBigCallIndicator->Control(); |
363 return iBigCallIndicator->Control(); |
362 } |
364 } |
363 |
365 |
364 return NULL; |
366 return NULL; |
365 |
367 |