emailservices/emailstore/message_store/debuglog/src/DebugLog.cpp
changeset 59 16ed8d08d0b1
parent 0 8466d47a6819
child 66 084b5b1f02a7
--- a/emailservices/emailstore/message_store/debuglog/src/DebugLog.cpp	Tue Jul 06 14:04:34 2010 +0300
+++ b/emailservices/emailstore/message_store/debuglog/src/DebugLog.cpp	Wed Aug 18 09:37:47 2010 +0300
@@ -1162,7 +1162,7 @@
     CLogFileHandler* handler = NULL;
     
     // Look for the log file handler for the given directory.
-    TInt  index = 0;
+    TInt index = 0;
     while( index < iFiles.Count() && ( !handler ) )
         {
         CLogFileHandler* currentHandler = iFiles[index];
@@ -1182,7 +1182,7 @@
 
         if( handler )
             {            
-            iFiles.Append( handler );
+            iFiles.AppendL( handler );
             } // end if
         }
     
@@ -1194,11 +1194,11 @@
 		if ( copyOfName )
 		    {       
             copyOfName->Des().Copy( aObject->ClassName8() );
-            handler->iObjectNames.Append( copyOfName );
+            handler->iObjectNames.AppendL( copyOfName );
 			}
 //#endif        
 
-        handler->iObjects.Append( aObject );
+        handler->iObjects.AppendL( aObject );
 	    } // end if
 	    
 	return handler;       
@@ -1212,7 +1212,7 @@
 // ==========================================================================
 void CDebugLogTlsData::DoReleaseLogFileHandler( CLogFileHandler* aHandler, RDebugLog* aObject )
     {
-    TInt index = aHandler->iObjects.Find( aObject );
+    TInt index = aHandler->iObjects.FindL( aObject );
     
     if( index >= 0 )
         {
@@ -1224,9 +1224,8 @@
         
         if( aHandler->iObjects.Count() == 0 )
             {
+            iFiles.Remove( iFiles.Find(aHandler) );
             delete aHandler;
-            
-            iFiles.Remove( iFiles.Find(aHandler) );                        
             } // end if
         }
     else