- Timestamp:
- Mar 2, 2013, 7:15:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/testing/src/libraries/util/output/OutputManager.cc
r9530 r9533 39 39 #include "util/Output.h" 40 40 #include "util/StringUtils.h" 41 #include "util/SharedPtr.h" 41 42 42 43 namespace orxonox … … 61 62 } 62 63 64 /*static*/ SharedPtr<OutputManager>& OutputManager::Testing::getInstancePointer() 65 { 66 static SharedPtr<OutputManager> instance(new OutputManager()); 67 return instance; 68 } 69 63 70 /** 64 71 @brief Returns the only existing instance of the OutputManager singleton. … … 66 73 /*static*/ OutputManager& OutputManager::getInstance() 67 74 { 68 static OutputManager instance; 69 return instance; 75 return *OutputManager::Testing::getInstancePointer(); 70 76 } 71 77
Note: See TracChangeset
for help on using the changeset viewer.