--- a/convergedcallengine/cce/src/ccceconferencecall.cpp Fri Jun 11 14:07:16 2010 +0300
+++ b/convergedcallengine/cce/src/ccceconferencecall.cpp Wed Jun 23 18:49:32 2010 +0300
@@ -286,10 +286,11 @@
for( TInt i = 0; i < array.Count(); i++ )
{
+ // *call ownership is not transfered.
const CCCECall* call = iCallContainer.GetCall( array[i] );
// Check if cce call matching to ccp call is available
- iCallArray.Append( call );
+ iCallArray.Append( call ); // Ignore return value;
iCallParameters->SetServiceId( call->ServiceId() );
CCELOGSTRING("CCCEConferenceCall:: Call added to conferencecall");
@@ -390,14 +391,12 @@
TInt CCCEConferenceCall::GetCallArray( RPointerArray<MCCECall>& aCallArray )
{
TInt err( KErrNotFound );
-
- for (TInt a = 0; a < iCallArray.Count(); a++)
+ TInt count = iCallArray.Count();
+ aCallArray.Reserve(count);
+ for (TInt a = 0; a < count; a++)
{
- aCallArray.Append( iCallArray[a] );
- err = KErrNone;
+ err= aCallArray.Append( iCallArray[a] );
}
-
-
return err;
}