Sfoglia il codice sorgente

base: prevent instantiation of several static-only classes.

legacy
Sam Hocevar sam 11 anni fa
parent
commit
b9d6454c30
6 ha cambiato i file con 18 aggiunte e 0 eliminazioni
  1. +3
    -0
      src/audio.h
  2. +3
    -0
      src/forge.h
  3. +3
    -0
      src/platform.h
  4. +3
    -0
      src/profiler.h
  5. +3
    -0
      src/ticker.h
  6. +3
    -0
      src/tiler.h

+ 3
- 0
src/audio.h Vedi File

@@ -26,6 +26,9 @@ class Audio
{
public:
static void Setup(int channels);

private:
Audio() {}
};

} /* namespace lol */


+ 3
- 0
src/forge.h Vedi File

@@ -28,6 +28,9 @@ public:
static int Register(char const *path);
static void Deregister(int id);
static Font *GetFont(int id);

private:
Forge() {}
};

} /* namespace lol */


+ 3
- 0
src/platform.h Vedi File

@@ -26,6 +26,9 @@ class Platform
{
public:
static int GetMouseCount();

private:
Platform() {}
};

} /* namespace lol */


+ 3
- 0
src/profiler.h Vedi File

@@ -48,6 +48,9 @@ public:
static void Stop(int id);
static float GetAvg(int id);
static float GetMax(int id);

private:
Profiler() {}
};

} /* namespace lol */


+ 3
- 0
src/ticker.h Vedi File

@@ -45,6 +45,9 @@ public:

static void Shutdown();
static int Finished();

private:
Ticker() {}
};

} /* namespace lol */


+ 3
- 0
src/tiler.h Vedi File

@@ -29,6 +29,9 @@ class Tiler
public:
static TileSet *Register(char const *path, ivec2 size, ivec2 count);
static void Deregister(TileSet *);

private:
Tiler() {}
};

} /* namespace lol */


Caricamento…
Annulla
Salva