Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 2, 2013, 7:15:37 PM (11 years ago)
Author:
landauf
Message:

added more tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/testing/src/libraries/util/output/OutputManager.cc

    r9530 r9533  
    3939#include "util/Output.h"
    4040#include "util/StringUtils.h"
     41#include "util/SharedPtr.h"
    4142
    4243namespace orxonox
     
    6162    }
    6263
     64    /*static*/ SharedPtr<OutputManager>& OutputManager::Testing::getInstancePointer()
     65    {
     66        static SharedPtr<OutputManager> instance(new OutputManager());
     67        return instance;
     68    }
     69
    6370    /**
    6471        @brief Returns the only existing instance of the OutputManager singleton.
     
    6673    /*static*/ OutputManager& OutputManager::getInstance()
    6774    {
    68         static OutputManager instance;
    69         return instance;
     75        return *OutputManager::Testing::getInstancePointer();
    7076    }
    7177
Note: See TracChangeset for help on using the changeset viewer.