Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2007, 4:02:14 AM (16 years ago)
Author:
landauf
Message:

sorry, that was wrong (was just testing)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/core/Factory.cc

    r562 r563  
    3838namespace orxonox
    3939{
    40     Factory* Factory::pointer_s = 0;
    41 
    4240    /**
    4341        @returns the Identifier with a given name.
     
    105103    Factory* Factory::getFactoryPointer()
    106104    {
    107 //        static Factory theOneAndOnlyInstance = Factory();
    108 //        return &theOneAndOnlyInstance;
    109         if (!pointer_s)
    110             pointer_s = new Factory();
    111 
    112         return pointer_s;
     105      static Factory theOneAndOnlyInstance = Factory();
     106      return &theOneAndOnlyInstance;
    113107    }
    114108}
Note: See TracChangeset for help on using the changeset viewer.