--- 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 );