summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/slide/layer.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine/slide/layer.hxx')
-rw-r--r--slideshow/source/engine/slide/layer.hxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/slideshow/source/engine/slide/layer.hxx b/slideshow/source/engine/slide/layer.hxx
index 3dc6a881802e..645c249c2011 100644
--- a/slideshow/source/engine/slide/layer.hxx
+++ b/slideshow/source/engine/slide/layer.hxx
@@ -26,8 +26,6 @@
#include "view.hxx"
#include "animatableshape.hxx"
-#include <boost/noncopyable.hpp>
-
#include <vector>
#include <memory>
@@ -58,12 +56,16 @@ namespace slideshow
be called from the LayerManager. Normally, it shouldn't be
possible to get hold of an instance of this class at all.
*/
- class Layer : public std::enable_shared_from_this<Layer>,
- private boost::noncopyable
+ class Layer : public std::enable_shared_from_this<Layer>
{
public:
typedef std::shared_ptr<LayerEndUpdate> EndUpdater;
+ /// Forbid copy construction
+ Layer(const Layer&) = delete;
+ /// Forbid copy assignment
+ Layer& operator=(const Layer&) = delete;
+
/** Create background layer
This method will create a layer without a ViewLayer,
@@ -213,7 +215,7 @@ namespace slideshow
Dummy parameter, to disambiguate from normal layer
constructor
*/
- Layer( Dummy eFlag );
+ explicit Layer( Dummy eFlag );
/** Create non-background layer