phonebookengines/contactsmodel/cntsrv/src/CViewSubSessions.cpp
branchRCL_3
changeset 45 34879f5cfc63
parent 26 0d28c1c5b6dd
child 64 c1e8ba0c2b16
--- 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<CViewContact&>(contact).ChangeToLightweightObject();
 	
 	const TInt externalizedSize=iContact->ExternalizedSize();
 	TPckgBuf<TInt> 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<CViewContact&>( contact ).ChangeToLightweightObject();
 		}
 
 	// Externalize array to client.