harvester/monitorplugins/fileplugin/src/fileeventhandlerao.cpp
changeset 1 acef663c1218
parent 0 c53acadfccc6
child 8 6752808b2036
child 20 6dfc5f825351
--- a/harvester/monitorplugins/fileplugin/src/fileeventhandlerao.cpp	Mon Jan 18 20:34:07 2010 +0200
+++ b/harvester/monitorplugins/fileplugin/src/fileeventhandlerao.cpp	Tue Jan 26 12:13:20 2010 +0200
@@ -165,6 +165,7 @@
     	                    {
     	                    iQueue.Remove( 0 );
     	                    delete tempItem;
+    	                    tempItem = NULL;
     	                    iEventArray->AppendL( status );
     	                    }
     	                else
@@ -811,7 +812,8 @@
     
     iIgnoreList.ResetAndDestroy();
     
-    for ( TInt i = aList.Count(); --i >= 0; )
+    const TInt count( aList.Count() );
+    for ( TInt i = count; --i >= 0; )
         {
         TDesC* listPath = aList[i];
         
@@ -843,7 +845,7 @@
 void CFileEventHandlerAO::NotMoveEvent(RPointerArray<CHarvesterData>& aHDArray)
 	{
 	TInt count = aHDArray.Count();
-	for (int i = 0; i < count; ++i)
+	for (TInt i = 0; i < count; ++i)
 		{
 		CHarvesterData* hd = aHDArray[i];
         iObserver->MonitorEvent( hd );