contentstorage/casrv/caappscanner/src/casrvappscanner.cpp
changeset 89 1e87eb3b400f
parent 87 9d806967057c
child 92 782e3408c2ab
equal deleted inserted replaced
88:7f0462e8c3da 89:1e87eb3b400f
   749         RBuf attrVal;
   749         RBuf attrVal;
   750         attrVal.CleanupClosePushL();
   750         attrVal.CleanupClosePushL();
   751         attrVal.CreateL( KCaMaxAttrValueLen );
   751         attrVal.CreateL( KCaMaxAttrValueLen );
   752         aEntry->FindAttribute( KCaAttrLongName, attrVal );
   752         aEntry->FindAttribute( KCaAttrLongName, attrVal );
   753         if( attrVal.Compare( info.iCaption ) != KErrNone
   753         if( attrVal.Compare( info.iCaption ) != KErrNone
   754                 || aEntry->GetText().Compare( info.iShortCaption )
   754                 || aEntry->GetText().Compare( info.iCaption )
   755                         != KErrNone )
   755                         != KErrNone )
   756             {
   756             {
   757             aEntry->SetTextL( info.iShortCaption );
   757             aEntry->SetTextL( info.iCaption );
   758             aEntry->AddAttributeL( KCaAttrLongName, info.iCaption );
   758             aEntry->AddAttributeL( KCaAttrLongName, info.iCaption );
   759             changed = ETrue;
   759             changed = ETrue;
   760             }
   760             }
   761         CleanupStack::PopAndDestroy( &attrVal );
   761         CleanupStack::PopAndDestroy( &attrVal );
   762         }
   762         }