javaextensions/pim/agnadapter/src.s60/cpimeventlistadapter.cpp
branchRCL_3
changeset 83 26b2b12093af
parent 77 7cee158cb8cd
--- a/javaextensions/pim/agnadapter/src.s60/cpimeventlistadapter.cpp	Wed Sep 15 12:05:25 2010 +0300
+++ b/javaextensions/pim/agnadapter/src.s60/cpimeventlistadapter.cpp	Wed Oct 13 14:23:59 2010 +0300
@@ -49,13 +49,10 @@
 // -----------------------------------------------------------------------------
 //
 void CPIMEventListAdapter::ConstructL(CCalEntry::TType aEntryType,
-
-                                      CPIMAgnEventAdapter* aEventAdapter,
-                                      TInt aCalSessionInt)
+                                      CPIMAgnEventAdapter* aEventAdapter)
 {
     JELOG2(EPim);
-    CCalSession* calSession = reinterpret_cast <CCalSession*>(aCalSessionInt);
-    CPIMAgnListAdapter::ConstructL(MCalChangeCallBack::EChangeEntryEvent, calSession);
+    CPIMAgnListAdapter::ConstructL(MCalChangeCallBack::EChangeEntryEvent);
     iEntryType = aEntryType;
     iAgnAdapter = aEventAdapter;
 }
@@ -66,17 +63,13 @@
 // -----------------------------------------------------------------------------
 //
 CPIMEventListAdapter* CPIMEventListAdapter::NewL(CCalEntry::TType aEntryType,
-        CPIMAgnEventAdapter* aEventAdapter,
-        java::util::FunctionServer* aFuncServer, CCalSession *aCalSession
-                                                )
+        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);
-
+                aEventAdapter, self->iFuncServer);
     CleanupStack::Pop(self);
     return self;
 }