contentstorage/casrv/caappscanner/src/casrvappscanner.cpp
changeset 61 8e5041d13c84
parent 60 f62f87b200ec
child 66 32469d7d46ff
equal deleted inserted replaced
60:f62f87b200ec 61:8e5041d13c84
   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         }