Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4519 in orxonox.OLD for orxonox/trunk/src/util/resource_manager.h


Ignore:
Timestamp:
Jun 6, 2005, 2:36:04 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: changed all getInstances into inline functions to save some (minor) time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/resource_manager.h

    r4465 r4519  
    7474 public:
    7575  virtual ~ResourceManager();
    76 
    77   static ResourceManager* getInstance();
     76  /** \returns a Pointer to the only object of this Class */
     77  inline static ResourceManager* getInstance(void) { if (!singletonRef) singletonRef = new ResourceManager();  return singletonRef; };
    7878
    7979  bool setDataDir(const char* dataDir);
Note: See TracChangeset for help on using the changeset viewer.