metadataengine/client/src/mdesessionimpl.cpp
changeset 28 c461c7fa72c2
parent 23 33ae025ac1e8
child 40 910a23996aa0
equal deleted inserted replaced
25:8e4539ab1889 28:c461c7fa72c2
  1336 
  1336 
  1337 		for ( TInt i = 0; i < count; ++i )
  1337 		for ( TInt i = 0; i < count; ++i )
  1338 			{
  1338 			{
  1339 			const TDesC& uri = *((*aObjects)[i]);
  1339 			const TDesC& uri = *((*aObjects)[i]);
  1340 			HBufC* lcUri = HBufC::NewLC( uri.Length() );
  1340 			HBufC* lcUri = HBufC::NewLC( uri.Length() );
       
  1341 			// Note: CopyLC doesn't push anything to cleanup stack
  1341 			lcUri->Des().CopyLC( uri );
  1342 			lcUri->Des().CopyLC( uri );
  1342 			buffer->InsertL( *lcUri );
  1343 			buffer->InsertL( *lcUri );
  1343 			CleanupStack::PopAndDestroy( lcUri );
  1344 			CleanupStack::PopAndDestroy( lcUri );
  1344 			}
  1345 			}
  1345 		}
  1346 		}