Fix some gcc issues. See bug 2962 GCC_SURGE
authorDario Sestito <darios@symbian.org>
Wed, 16 Jun 2010 14:59:03 +0100
branchGCC_SURGE
changeset 76 999a74da228b
parent 75 cd0e9694f2ef
child 78 10563c32cc35
Fix some gcc issues. See bug 2962
webengine/webkitutils/rt_gesturehelper/src/gesturehelperimpl.cpp
webengine/webkitutils/rt_gesturehelper/src/gesturerecogniser.cpp
webengine/widgetinstaller/Src/WidgetInstaller.cpp
--- a/webengine/webkitutils/rt_gesturehelper/src/gesturehelperimpl.cpp	Wed Jun 16 13:48:17 2010 +0100
+++ b/webengine/webkitutils/rt_gesturehelper/src/gesturehelperimpl.cpp	Wed Jun 16 14:59:03 2010 +0100
@@ -137,12 +137,12 @@
     CGestureHelperImpl* self = new ( ELeave ) CGestureHelperImpl( aObserver );
     CleanupStack::PushL( self );
     self->iEventSender = CGestureEventSender::NewL( aObserver );
-    self->iDoubleTapTimer = CCallbackTimer::NewL( *self, EmitFirstTapEvent, 
+    self->iDoubleTapTimer = CCallbackTimer::NewL( *self, &EmitFirstTapEvent, 
             KMaxTapDuration, EFalse ); // double tap is disabled by default
-    self->iHoldingTimer = CCallbackTimer::NewL( *self, StartHoldingL, 
+    self->iHoldingTimer = CCallbackTimer::NewL( *self, &StartHoldingL, 
         KHoldDuration, EFalse ); // holding is enabled by default
     
-    self->iLongTouchTimer = CCallbackTimer::NewL( *self, HandleLongTouch, 
+    self->iLongTouchTimer = CCallbackTimer::NewL( *self, &HandleLongTouch, 
             KLongTapDuration, ETrue ); // holding is enabled by default
     
     self->iGesture = new ( ELeave ) CGesture();
--- a/webengine/webkitutils/rt_gesturehelper/src/gesturerecogniser.cpp	Wed Jun 16 13:48:17 2010 +0100
+++ b/webengine/webkitutils/rt_gesturehelper/src/gesturerecogniser.cpp	Wed Jun 16 14:59:03 2010 +0100
@@ -182,7 +182,7 @@
 /** @return last direction of dragging */
 inline TGestureCode LastDirection( const TPointArray& aPoints ) 
     {
-    TInt latestPointIndex = LatestCertainPointIndex( aPoints, TPointArray::operator[] );
+    TInt latestPointIndex = LatestCertainPointIndex( aPoints, &TPointArray::operator[] );
     if ( KErrNotFound != latestPointIndex )
         {
         return Direction( aPoints[latestPointIndex], LastPoint( aPoints ) );
@@ -196,7 +196,7 @@
  */
 inline TBool IsTap( const TPointArray& aPoints )
     {
-    return KErrNotFound == LatestCertainPointIndex( aPoints, TPointArray::Raw );
+    return KErrNotFound == LatestCertainPointIndex( aPoints, &TPointArray::Raw );
     }  
     
 // ----------------------------------------------------------------------------
--- a/webengine/widgetinstaller/Src/WidgetInstaller.cpp	Wed Jun 16 13:48:17 2010 +0100
+++ b/webengine/widgetinstaller/Src/WidgetInstaller.cpp	Wed Jun 16 14:59:03 2010 +0100
@@ -472,14 +472,16 @@
                     break;
                     
                     case EWidgetPropTypeInt:
-                    TLex toInt( value->Des() );
-                    TInt k;
-                    if ( KErrNone != toInt.Val( k ) )
-                       {
-                       User::Leave( KErrCorrupt );
-                       }
-                    if ( propId ==  EBlanketPermGranted )
-                        backupBlanketPerm = k;        
+                    	{
+		                TLex toInt( value->Des() );
+		                TInt k;
+		                if ( KErrNone != toInt.Val( k ) )
+		                   {
+		                   User::Leave( KErrCorrupt );
+		                   }
+		                if ( propId ==  EBlanketPermGranted )
+		                    backupBlanketPerm = k;
+						}        
                     break;                    
 					          
 					          case EWidgetPropTypeString: