equal
deleted
inserted
replaced
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". |
1040 void CMessageStoreServer::TPtrC8ToRBuf16L( const TPtrC8& aPtr8, RBuf& aBuf ) const |
1040 void CMessageStoreServer::TPtrC8ToRBuf16L( const TPtrC8& aPtr8, RBuf& aBuf ) const |
1041 { |
1041 { |
1042 RBuf8 val8; |
1042 RBuf8 val8; |
1043 CleanupClosePushL( val8 ); |
1043 CleanupClosePushL( val8 ); |
1044 |
1044 |
1045 val8.Create( aPtr8 ); |
1045 val8.CreateL( aPtr8 ); |
1046 |
1046 |
1047 const TUint16* valuePtr16 = reinterpret_cast<const TUint16*>( val8.Ptr() ); |
1047 const TUint16* valuePtr16 = reinterpret_cast<const TUint16*>( val8.Ptr() ); |
1048 TPtrC16 val16( valuePtr16, val8.Length() / 2 ); |
1048 TPtrC16 val16( valuePtr16, val8.Length() / 2 ); |
1049 |
1049 |
1050 aBuf.Create( val16 ); |
1050 aBuf.CreateL( val16 ); |
1051 |
1051 |
1052 CleanupStack::PopAndDestroy( &val8 ); |
1052 CleanupStack::PopAndDestroy( &val8 ); |
1053 } |
1053 } |
1054 |
1054 |
1055 // FROM: MPSPropertyWatcherObserver |
1055 // FROM: MPSPropertyWatcherObserver |