Author: ilor
Date: Fri Oct 17 18:43:20 2008
New Revision: 30227

URL: http://svn.gna.org/viewcvs/wesnoth?rev=30227&view=rev
Log:
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)

Modified:
    trunk/src/video.hpp

Modified: trunk/src/video.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/video.hpp?rev=30227&r1=30226&r2=30227&view=diff
==============================================================================
--- trunk/src/video.hpp (original)
+++ trunk/src/video.hpp Fri Oct 17 18:43:20 2008
@@ -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(const SDL_Rect& rect);
 void update_whole_screen();
 
-class CVideo {
+class CVideo : private boost::noncopyable {
      public:
                 enum FAKE_TYPES {
                         NO_FAKE,


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to