emailservices/emailstore/message_store/server/src/ContainerStoreSearchHandler.cpp
changeset 76 38bf5461e270
parent 68 83cc6bae1de8
equal deleted inserted replaced
74:6c59112cfd31 76:38bf5461e270
   464         
   464         
   465         __LOG_BLOCK( TPtr searchStringPtr = searchString->Des(); )
   465         __LOG_BLOCK( TPtr searchStringPtr = searchString->Des(); )
   466         __LOG_WRITE_FORMAT1_INFO( "search string =%S", &searchStringPtr );
   466         __LOG_WRITE_FORMAT1_INFO( "search string =%S", &searchStringPtr );
   467         
   467         
   468         HBufC* pattern = HBufC::NewL( searchString->Length() + 2 );
   468         HBufC* pattern = HBufC::NewL( searchString->Length() + 2 );
       
   469         CleanupStack::PushL( pattern );
   469         aSearchPatterns.AppendL( pattern );
   470         aSearchPatterns.AppendL( pattern );
       
   471         CleanupStack::Pop( pattern );
   470         TPtr seartStringPrt( pattern->Des() );
   472         TPtr seartStringPrt( pattern->Des() );
   471         
   473         
   472         //we are using MatchC(), so we need to add * to the start and end of the search pattern
   474         //we are using MatchC(), so we need to add * to the start and end of the search pattern
   473         if ( searchString->Locate(KStarChar) != 0 )
   475         if ( searchString->Locate(KStarChar) != 0 )
   474             {
   476             {