locationtriggering/ltstrategyengine/src/lbtcellsupervisor.cpp
changeset 39 3efc7a0e8755
parent 18 3825cf2dc8c2
child 45 6b6920c56e2f
--- a/locationtriggering/ltstrategyengine/src/lbtcellsupervisor.cpp	Fri Jul 23 19:40:48 2010 +0530
+++ b/locationtriggering/ltstrategyengine/src/lbtcellsupervisor.cpp	Fri Aug 06 19:34:22 2010 +0530
@@ -135,7 +135,11 @@
                 // If the fired time is non-zero, add it to recently fired trigger list
                 if( strategyData.iFireTime )
                     {
-                    iRecentlyFiredTriggerArray.Append( conTrigger );
+                    TInt error = iRecentlyFiredTriggerArray.Append( conTrigger );
+					if( error != KErrNone )
+						{
+						LOG1("Failed to append conTrigger into the array:%d",error);
+						}
                     }
                 }
             }
@@ -525,7 +529,11 @@
     ClearVisitedCellInfo( aStrategyData );
     
     // Append this trigger to recently fired trigger
-    iRecentlyFiredTriggerArray.Append( aTrigger );
+    TInt error = iRecentlyFiredTriggerArray.Append( aTrigger );
+	if( error != KErrNone )
+		{
+	    LOG1("Failed to append trigger to the array:%d",error);		
+		}
 	}
 
 
@@ -610,7 +618,11 @@
                 {
                 strategyData.iFireTime = 0;
                 iRecentlyFiredTriggerArray[i]->SetStrategyData( strategyData );
-                activatedTriggers.Append( iRecentlyFiredTriggerArray[i] );
+                TInt error = activatedTriggers.Append( iRecentlyFiredTriggerArray[i] );
+                if( error != KErrNone )
+                    {
+                    LOG1("Failed to append to fired triggers to the array:%d",error);
+                    }
                 iRecentlyFiredTriggerArray.Remove(i);
                 }
             }