diff -r a6539d1e8e43 -r 34879f5cfc63 phonebookengines/contactsmodel/cntsrv/src/CViewSubSessions.cpp --- a/phonebookengines/contactsmodel/cntsrv/src/CViewSubSessions.cpp Wed Jun 09 09:26:27 2010 +0300 +++ b/phonebookengines/contactsmodel/cntsrv/src/CViewSubSessions.cpp Mon Jun 21 15:24:27 2010 +0300 @@ -390,10 +390,6 @@ delete iContact; iContact=NULL; iContact = CViewContact::NewL(contact); - - //Always keep server side local view in memory saving mode, so we - //change the view contact object stored in iView into lightweight object - const_cast(contact).ChangeToLightweightObject(); const TInt externalizedSize=iContact->ExternalizedSize(); TPckgBuf pckg(externalizedSize); @@ -668,10 +664,6 @@ idMap.iMapping=i; User::LeaveIfError(array.Append(idMap)); } - - //Always keep server side local view in memory saving mode, so we - //change the view contact object stored in iView into lightweight object - const_cast( contact ).ChangeToLightweightObject(); } // Externalize array to client.