equal
deleted
inserted
replaced
214 // --------------------------------------------------------------------------- |
214 // --------------------------------------------------------------------------- |
215 // |
215 // |
216 TInt CBubbleOutlookThreeLined::CountComponentControls() const |
216 TInt CBubbleOutlookThreeLined::CountComponentControls() const |
217 { |
217 { |
218 TInt amount = 0; |
218 TInt amount = 0; |
219 |
219 |
220 if ( iNumberType ) |
220 if ( iNumberType ) |
221 { |
221 { |
222 amount++; |
222 amount++; |
223 } |
223 } |
224 |
224 |
283 // |
283 // |
284 CCoeControl* CBubbleOutlookThreeLined::ComponentControl(TInt aIndex) const |
284 CCoeControl* CBubbleOutlookThreeLined::ComponentControl(TInt aIndex) const |
285 { |
285 { |
286 |
286 |
287 TInt amount = -1; |
287 TInt amount = -1; |
288 |
288 // coverity[var_compare_op] |
289 if ( iNumberType ) |
289 if ( iNumberType ) |
290 { |
290 { |
291 amount++; |
291 amount++; |
292 } |
292 } |
293 |
293 |
294 if ( aIndex == amount ) |
294 if ( aIndex == amount ) |
295 { |
295 { |
|
296 // coverity[var_deref_model] |
296 return iNumberType->Control(); |
297 return iNumberType->Control(); |
297 } |
298 } |
298 |
299 |
299 if ( iCyphOffImage ) |
300 if ( iCyphOffImage ) |
300 { |
301 { |
351 amount++; |
352 amount++; |
352 } |
353 } |
353 |
354 |
354 if ( aIndex == amount ) |
355 if ( aIndex == amount ) |
355 { |
356 { |
|
357 // coverity[var_deref_model] |
356 return iSmallCallIndication->Control(); |
358 return iSmallCallIndication->Control(); |
357 } |
359 } |
358 |
360 |
359 if ( iTypeIndication1 ) |
361 if ( iTypeIndication1 ) |
360 { |
362 { |
381 amount++; |
383 amount++; |
382 } |
384 } |
383 |
385 |
384 if ( aIndex == amount ) |
386 if ( aIndex == amount ) |
385 { |
387 { |
|
388 // coverity[var_deref_model] |
386 return iBrandImage->Control(); |
389 return iBrandImage->Control(); |
387 } |
390 } |
388 |
391 |
389 if ( iBigCallIndicator ) |
392 if ( iBigCallIndicator ) |
390 { |
393 { |
391 amount++; |
394 amount++; |
392 } |
395 } |
393 |
396 |
394 if ( aIndex == amount ) |
397 if ( aIndex == amount ) |
395 { |
398 { |
|
399 // coverity[var_deref_model] |
396 return iBigCallIndicator->Control(); |
400 return iBigCallIndicator->Control(); |
397 } |
401 } |
398 |
402 |
399 return NULL; |
403 return NULL; |
400 } |
404 } |