memspy/CommandLine/Source/MemSpyCommandLineMain.cpp
branchRCL_3
changeset 59 8ad140f3dd41
parent 49 7fdc9a71d314
--- a/memspy/CommandLine/Source/MemSpyCommandLineMain.cpp	Wed Sep 15 13:53:27 2010 +0300
+++ b/memspy/CommandLine/Source/MemSpyCommandLineMain.cpp	Wed Oct 13 16:17:58 2010 +0300
@@ -25,7 +25,7 @@
 
 // User includes
 #include "MemSpyCommandLine.h"
-#include "MemSpyCommands.h"
+
 
 // ---------------------------------------------------------------------------
 // DoMainL()
@@ -38,27 +38,21 @@
     CActiveScheduler* scheduler = new (ELeave) CActiveScheduler();
     CActiveScheduler::Install( scheduler );
     CleanupStack::PushL( scheduler );
-    
+
     // Get command line 
     CCommandLineArguments* args = CCommandLineArguments::NewLC();
-    
-    //--
-    CConsoleBase* console = Console::NewL( KMemSpyCLIName, TSize( KConsFullScreen, KConsFullScreen ) );
-    CleanupStack::PushL( console );
-    //--
-    
+
     // Command line manager
-    CMemSpyCommandLine* commandLineMgr = CMemSpyCommandLine::NewLC( *console );
+    CMemSpyCommandLine* commandLineMgr = CMemSpyCommandLine::NewLC();
 
     // Play nicely with external processes
     RProcess::Rendezvous( KErrNone );
 
     // Perform op
-    commandLineMgr->PerformOpL( *args );  
-        
+    commandLineMgr->PerformOpL( *args );
+
     // Tidy up
-    //CleanupStack::PopAndDestroy( 3, scheduler ); // scheduler, args, commandLineMgr
-    CleanupStack::PopAndDestroy( 4 ); // scheduler, args,  console, commandLineMgr
+    CleanupStack::PopAndDestroy( 3, scheduler ); // scheduler, args, commandLineMgr
     }