javaextensions/pim/agnadapter/src.s60/cpimeventlistadapter.cpp
changeset 26 dc7c549001d5
parent 23 98ccebc37403
child 67 63b81d807542
--- a/javaextensions/pim/agnadapter/src.s60/cpimeventlistadapter.cpp	Fri May 14 15:47:24 2010 +0300
+++ b/javaextensions/pim/agnadapter/src.s60/cpimeventlistadapter.cpp	Thu May 27 12:49:31 2010 +0300
@@ -48,14 +48,11 @@
 // Symbian 2nd phase constructor can leave.
 // -----------------------------------------------------------------------------
 //
-void CPIMEventListAdapter::ConstructL(CCalEntry::TType aEntryType, 
-
-									  CPIMAgnEventAdapter* aEventAdapter,
-                                      TInt aCalSessionInt)
-    {
+void CPIMEventListAdapter::ConstructL(CCalEntry::TType aEntryType,
+                                      CPIMAgnEventAdapter* aEventAdapter)
+{
     JELOG2(EPim);
-    CCalSession* calSession = reinterpret_cast <CCalSession*> (aCalSessionInt);
-    CPIMAgnListAdapter::ConstructL(MCalChangeCallBack::EChangeEntryEvent, calSession);
+    CPIMAgnListAdapter::ConstructL(MCalChangeCallBack::EChangeEntryEvent);
     iEntryType = aEntryType;
     iAgnAdapter = aEventAdapter;
 }
@@ -65,19 +62,15 @@
 // Two-phased constructor.
 // -----------------------------------------------------------------------------
 //
-CPIMEventListAdapter* CPIMEventListAdapter::NewL(CCalEntry::TType aEntryType,        
-        CPIMAgnEventAdapter* aEventAdapter, 
-        java::util::FunctionServer* aFuncServer, CCalSession *aCalSession
-        	)
-    {
+CPIMEventListAdapter* CPIMEventListAdapter::NewL(CCalEntry::TType aEntryType,
+        CPIMAgnEventAdapter* aEventAdapter, java::util::FunctionServer* aFuncServer)
+{
     JELOG2(EPim);
     CPIMEventListAdapter* self = new(ELeave) CPIMEventListAdapter(aFuncServer);
     CleanupStack::PushL(self);
-    TInt calSessionInt = reinterpret_cast <TInt> (aCalSession);
     CallMethodL(self, &CPIMEventListAdapter::ConstructL, aEntryType,
-                aEventAdapter, calSessionInt,self->iFuncServer);
-
-    CleanupStack::Pop( self );
+                aEventAdapter, self->iFuncServer);
+    CleanupStack::Pop(self);
     return self;
 }