phoneuis/BubbleManager/Src/BMBubbleOutlookTwoLined.cpp
branchRCL_3
changeset 3 8871b09be73b
parent 0 5f000ab63145
equal deleted inserted replaced
2:c84cf270c54f 3:8871b09be73b
   273 //
   273 //
   274 CCoeControl* CBubbleOutlookTwoLined::ComponentControl(TInt aIndex) const
   274 CCoeControl* CBubbleOutlookTwoLined::ComponentControl(TInt aIndex) const
   275     {
   275     {
   276   
   276   
   277     TInt amount = -1;
   277     TInt amount = -1;
   278     
   278     // coverity[var_compare_op]
   279     if ( iNumberType )
   279     if ( iNumberType )
   280         {
   280         {
   281         amount++;
   281         amount++;
   282         }
   282         }
   283 
   283 
   284     if ( aIndex == amount )
   284     if ( aIndex == amount )
   285         {
   285         {
       
   286         // coverity[var_deref_model]
   286         return iNumberType->Control();
   287         return iNumberType->Control();
   287         }
   288         }
   288 
   289 
   289     if ( iSmallCallIndication )
   290     if ( iSmallCallIndication )
   290         {
   291         {
   291         amount++;
   292         amount++;
   292         }
   293         }
   293 
   294 
   294     if ( aIndex == amount )
   295     if ( aIndex == amount )
   295         {
   296         {
       
   297         // coverity[var_deref_model]
   296         return iSmallCallIndication->Control();
   298         return iSmallCallIndication->Control();
   297         }
   299         }
   298 
   300 
   299     if ( iTypeIndication1 )
   301     if ( iTypeIndication1 )
   300         {
   302         {
   361         amount++;
   363         amount++;
   362         }
   364         }
   363 
   365 
   364     if ( aIndex == amount )
   366     if ( aIndex == amount )
   365         {
   367         {
       
   368         // coverity[var_deref_model]
   366         return iBrandImage->Control();
   369         return iBrandImage->Control();
   367         }
   370         }
   368 
   371 
   369     if ( iBigCallIndicator )
   372     if ( iBigCallIndicator )
   370         {
   373         {
   371         amount++;
   374         amount++;
   372         }
   375         }
   373 
   376 
   374     if ( aIndex == amount )
   377     if ( aIndex == amount )
   375         {
   378         {
       
   379         // coverity[var_deref_model]
   376         return iBigCallIndicator->Control();
   380         return iBigCallIndicator->Control();
   377         }
   381         }
   378     
   382     
   379     return NULL;
   383     return NULL;
   380 
   384