make the CVideo class noncopyable...
...(copying it is a sign of a typo that will be caught by the compiler this way instead of crashing at runtime)
This commit is contained in:
parent
d71abda222
commit
e691fff0b6
1 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,8 @@
|
|||
#include "SDL.h"
|
||||
#include "sdl_utils.hpp"
|
||||
|
||||
#include <boost/utility.hpp>
|
||||
|
||||
//possible flags when setting video modes
|
||||
#define FULL_SCREEN SDL_FULLSCREEN
|
||||
#define VIDEO_MEMORY SDL_HWSURFACE
|
||||
|
@ -34,7 +36,7 @@ void update_rect(size_t x, size_t y, size_t w, size_t h);
|
|||
void update_rect(const SDL_Rect& rect);
|
||||
void update_whole_screen();
|
||||
|
||||
class CVideo {
|
||||
class CVideo : private boost::noncopyable {
|
||||
public:
|
||||
enum FAKE_TYPES {
|
||||
NO_FAKE,
|
||||
|
|
Loading…
Add table
Reference in a new issue