metadataengine/client/src/mdesessionimpl.cpp
branchRCL_3
changeset 13 4a4892eec172
parent 10 ab88d4a85041
child 19 b73252188534
equal deleted inserted replaced
12:9f21bab39f42 13:4a4892eec172
  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 		}