mirror of https://github.com/FreeRDP/FreeRDP
[client,sdl] add assignmen and move operator delete
This commit is contained in:
parent
00e4fc267a
commit
ff772084e6
|
@ -27,5 +27,12 @@
|
|||
class SDL2ResourceManager : public SDLResourceManager
|
||||
{
|
||||
public:
|
||||
SDL2ResourceManager() = delete;
|
||||
SDL2ResourceManager(const SDL2ResourceManager& other) = delete;
|
||||
SDL2ResourceManager(const SDL2ResourceManager&& other) = delete;
|
||||
~SDL2ResourceManager() = delete;
|
||||
SDL2ResourceManager operator=(const SDL2ResourceManager& other) = delete;
|
||||
SDL2ResourceManager& operator=(SDL2ResourceManager&& other) = delete;
|
||||
|
||||
static SDL_RWops* get(const std::string& type, const std::string& id);
|
||||
};
|
||||
|
|
|
@ -27,5 +27,12 @@
|
|||
class SDL3ResourceManager : public SDLResourceManager
|
||||
{
|
||||
public:
|
||||
SDL3ResourceManager() = delete;
|
||||
SDL3ResourceManager(const SDL3ResourceManager& other) = delete;
|
||||
SDL3ResourceManager(const SDL3ResourceManager&& other) = delete;
|
||||
~SDL3ResourceManager() = delete;
|
||||
SDL3ResourceManager operator=(const SDL3ResourceManager& other) = delete;
|
||||
SDL3ResourceManager& operator=(SDL3ResourceManager&& other) = delete;
|
||||
|
||||
static SDL_IOStream* get(const std::string& type, const std::string& id);
|
||||
};
|
||||
|
|
|
@ -26,6 +26,13 @@ class SDLResourceManager
|
|||
friend class SDLResourceFile;
|
||||
|
||||
public:
|
||||
SDLResourceManager() = delete;
|
||||
SDLResourceManager(const SDLResourceManager& other) = delete;
|
||||
SDLResourceManager(const SDLResourceManager&& other) = delete;
|
||||
~SDLResourceManager() = delete;
|
||||
SDLResourceManager operator=(const SDLResourceManager& other) = delete;
|
||||
SDLResourceManager& operator=(SDLResourceManager&& other) = delete;
|
||||
|
||||
static const std::string typeFonts();
|
||||
static const std::string typeImages();
|
||||
|
||||
|
@ -39,10 +46,5 @@ class SDLResourceManager
|
|||
static bool useCompiledResources();
|
||||
|
||||
private:
|
||||
SDLResourceManager() = delete;
|
||||
SDLResourceManager(const SDLResourceManager& other) = delete;
|
||||
SDLResourceManager(const SDLResourceManager&& other) = delete;
|
||||
~SDLResourceManager() = delete;
|
||||
|
||||
static std::map<std::string, std::vector<unsigned char>>& resources();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue