Changeset 1326 for code/branches/console/src/core/Shell.cc
- Timestamp:
- May 19, 2008, 4:37:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/Shell.cc
r1325 r1326 31 31 #include "CoreIncludes.h" 32 32 #include "ConfigValueIncludes.h" 33 #include "CoreSettings.h" 33 34 34 35 #define SHELL_UPDATE_LISTENERS(function) \ … … 70 71 } 71 72 73 Shell& Shell::createShell() 74 { 75 int level = CoreSettings::getSoftDebugLevel(OutputHandler::LD_Shell); 76 CoreSettings::setSoftDebugLevel(OutputHandler::LD_Shell, -1); 77 static Shell instance; 78 CoreSettings::setSoftDebugLevel(OutputHandler::LD_Shell, level); 79 return instance; 80 } 81 72 82 Shell& Shell::getInstance() 73 83 { 74 static Shell instance;84 static Shell& instance = createShell(); 75 85 return instance; 76 86 } … … 325 335 326 336 this->clear(); 337 this->scrollPosition_ = 0; 338 this->scrollIterator_ = this->lines_.begin(); 339 327 340 SHELL_UPDATE_LISTENERS(exit); 328 341 }
Note: See TracChangeset
for help on using the changeset viewer.