Changeset 2437


Ignore:
Timestamp:
Feb 18, 2013, 10:35:45 PM (6 years ago)
Author:
sam
Message:

base: prevent instantiation of several static-only classes.

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/audio.h

    r2183 r2437  
    2727public:
    2828    static void Setup(int channels);
     29
     30private:
     31    Audio() {}
    2932};
    3033
  • trunk/src/forge.h

    r2183 r2437  
    2929    static void Deregister(int id);
    3030    static Font *GetFont(int id);
     31
     32private:
     33    Forge() {}
    3134};
    3235
  • trunk/src/platform.h

    r2183 r2437  
    2727public:
    2828    static int GetMouseCount();
     29
     30private:
     31    Platform() {}
    2932};
    3033
  • trunk/src/profiler.h

    r2183 r2437  
    4949    static float GetAvg(int id);
    5050    static float GetMax(int id);
     51
     52private:
     53    Profiler() {}
    5154};
    5255
  • trunk/src/ticker.h

    r2183 r2437  
    4646    static void Shutdown();
    4747    static int Finished();
     48
     49private:
     50    Ticker() {}
    4851};
    4952
  • trunk/src/tiler.h

    r2216 r2437  
    3030    static TileSet *Register(char const *path, ivec2 size, ivec2 count);
    3131    static void Deregister(TileSet *);
     32
     33private:
     34    Tiler() {}
    3235};
    3336
Note: See TracChangeset for help on using the changeset viewer.