From bf9fc1de4c53a88a28be48dbf7cf4795199442d4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 30 Sep 2019 03:27:33 +0300 Subject: Add missing static keywords --- src/resources/memorymanager.h | 12 ++++++------ src/resources/sdlimagehelper.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/resources') diff --git a/src/resources/memorymanager.h b/src/resources/memorymanager.h index 8dbf11b7f..3abceb6ce 100644 --- a/src/resources/memorymanager.h +++ b/src/resources/memorymanager.h @@ -39,14 +39,14 @@ class MemoryManager final ~MemoryManager() { } - int getSurfaceSize(const SDL_Surface *const surface); + static int getSurfaceSize(const SDL_Surface *const surface); - void printMemory(const std::string &name, - const int level, - const int localSum, - const int childsSum); + static void printMemory(const std::string &name, + const int level, + const int localSum, + const int childsSum); - void printAllMemory(ChatTab *const tab); + static void printAllMemory(ChatTab *const tab); }; extern MemoryManager memoryManager; diff --git a/src/resources/sdlimagehelper.h b/src/resources/sdlimagehelper.h index 77f6d3941..63089966c 100644 --- a/src/resources/sdlimagehelper.h +++ b/src/resources/sdlimagehelper.h @@ -94,7 +94,7 @@ class SDLImageHelper final : public ImageHelper protected: /** SDL_Surface to SDL_Surface Image loader */ - Image *_SDLload(SDL_Surface *tmpImage) A_WARN_UNUSED; + static Image *_SDLload(SDL_Surface *tmpImage); static bool mEnableAlphaCache; }; -- cgit v1.2.3-70-g09d2