emailservices/emailstore/message_store/server/src/ContainerStoreSearchHandler.cpp
changeset 75 47d84de1c893
parent 59 16ed8d08d0b1
child 76 38bf5461e270
equal deleted inserted replaced
72:64e38f08e49c 75:47d84de1c893
     1 /*
     1 /*
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   490 void CContainerStoreSearchHandler::TPtrC8ToRBuf16L( const TPtrC8& aPtr8, RBuf& aBuf ) const
   490 void CContainerStoreSearchHandler::TPtrC8ToRBuf16L( const TPtrC8& aPtr8, RBuf& aBuf ) const
   491     {
   491     {
   492     RBuf8 val8;
   492     RBuf8 val8;
   493     CleanupClosePushL( val8 );
   493     CleanupClosePushL( val8 );
   494     
   494     
   495     val8.Create( aPtr8 );
   495     val8.CreateL( aPtr8 );
   496     
   496     
   497     const TUint16* valuePtr16 = reinterpret_cast<const TUint16*>( val8.Ptr() );
   497     const TUint16* valuePtr16 = reinterpret_cast<const TUint16*>( val8.Ptr() );
   498     TPtrC16 val16( valuePtr16, val8.Length() / 2 );
   498     TPtrC16 val16( valuePtr16, val8.Length() / 2 );
   499     
   499     
   500     aBuf.Create( val16.Length() );
   500     aBuf.CreateL( val16.Length() );
   501     aBuf.Copy( val16 );
   501     aBuf.Copy( val16 );
   502     
   502     
   503     CleanupStack::PopAndDestroy( &val8 );
   503     CleanupStack::PopAndDestroy( &val8 );
   504     }
   504     }
   505 
   505