equal
deleted
inserted
replaced
110 // Strips data that is to be transmitted to the sync partner. |
110 // Strips data that is to be transmitted to the sync partner. |
111 // ------------------------------------------------------------------------------------------------ |
111 // ------------------------------------------------------------------------------------------------ |
112 EXPORT_C void CNSmlDataModBase::StripTxL( CBufBase& aItem ) |
112 EXPORT_C void CNSmlDataModBase::StripTxL( CBufBase& aItem ) |
113 { |
113 { |
114 _DBG_FILE("CNSmlDataModBase::StripTxL(): begin"); |
114 _DBG_FILE("CNSmlDataModBase::StripTxL(): begin"); |
115 HBufC8* buf = HBufC8::NewLC(aItem.Size() * 2); |
115 HBufC8* buf = HBufC8::NewLC(aItem.Size()); |
116 *buf = aItem.Ptr(0); |
116 *buf = aItem.Ptr(0); |
117 TPtr8 ptrBuf = buf->Des(); |
117 TPtr8 ptrBuf = buf->Des(); |
118 |
118 |
119 StripL(ptrBuf); |
119 StripL(ptrBuf); |
120 |
120 |
283 |
283 |
284 CArrayPtr<CParserProperty>* allProps = aEntity->ArrayOfProperties( EFalse ); |
284 CArrayPtr<CParserProperty>* allProps = aEntity->ArrayOfProperties( EFalse ); |
285 for( TInt i = 0; i < allProps->Count(); ) // Variable i is not increased here because size of count might be changes during loop |
285 for( TInt i = 0; i < allProps->Count(); ) // Variable i is not increased here because size of count might be changes during loop |
286 { |
286 { |
287 const CParserProperty& ownProperty = *allProps->At( i ); |
287 const CParserProperty& ownProperty = *allProps->At( i ); |
288 CParserPropertyValue* ownValue = ownProperty.Value(); |
288 |
289 |
289 |
290 TBool removeMe( EFalse ); |
290 TBool removeMe( EFalse ); |
291 |
291 |
292 for( TInt i2 = 0; i2 < iRemoteStoreFormat->MimeFormat( iUsedRemoteMimeType ).PropertyCount(); i2++ ) |
292 for( TInt i2 = 0; i2 < iRemoteStoreFormat->MimeFormat( iUsedRemoteMimeType ).PropertyCount(); i2++ ) |
293 { |
293 { |
456 |
456 |
457 CArrayPtr<CParserProperty>* allProps = aEntity->ArrayOfProperties( EFalse ); |
457 CArrayPtr<CParserProperty>* allProps = aEntity->ArrayOfProperties( EFalse ); |
458 for( TInt i = 0; i < allProps->Count(); ) // Variable i is not increased here because size of count might be changes during loop |
458 for( TInt i = 0; i < allProps->Count(); ) // Variable i is not increased here because size of count might be changes during loop |
459 { |
459 { |
460 const CParserProperty& ownProperty = *allProps->At( i ); |
460 const CParserProperty& ownProperty = *allProps->At( i ); |
461 CParserPropertyValue* ownValue = ownProperty.Value(); |
461 |
462 |
|
463 TBool removeMe( ETrue ); |
462 TBool removeMe( ETrue ); |
464 |
463 |
465 for( TInt i2 = 0; i2 < iRemoteStoreFormat->MimeFormat( iUsedRemoteMimeType ).PropertyCount(); i2++ ) |
464 for( TInt i2 = 0; i2 < iRemoteStoreFormat->MimeFormat( iUsedRemoteMimeType ).PropertyCount(); i2++ ) |
466 { |
465 { |
467 const CSmlDataProperty& remoteProperty = iRemoteStoreFormat->MimeFormat( iUsedRemoteMimeType ).Property( i2 ); |
466 const CSmlDataProperty& remoteProperty = iRemoteStoreFormat->MimeFormat( iUsedRemoteMimeType ).Property( i2 ); |