From 6bfb5f6d2c9b78c1439f9dfcc44005e6dc8056e4 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 17 Sep 2012 00:57:23 +0200 Subject: menu/background: use boost::noncopyable --- src/menu/background.hpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'src/menu') diff --git a/src/menu/background.hpp b/src/menu/background.hpp index 660605dd..a971416c 100644 --- a/src/menu/background.hpp +++ b/src/menu/background.hpp @@ -26,26 +26,23 @@ #define BACKGROUND_HPP #include "drawable.hpp" +#include namespace usdx { class DrawableControl; - // Background - abstract class for Backgrounds - class Background : public Drawable + /** + * Abstract class for backgrounds. Subclasses of this class, implement + * different ways to draw the background for any DrawableControl. + */ + class Background : public Drawable, public boost::noncopyable { private: const DrawableControl& parent; - protected: - // abstract base class - Background(const DrawableControl&); - - // no copy and no assignment - Background(const Background&); - Background& operator=(const Background&); - public: + Background(const DrawableControl&); virtual ~Background(); /** -- cgit v1.2.3