diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-04-13 10:07:19 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-04-13 11:34:32 +0000 |
commit | 0de868cd0f430efc6256926c2865530818d7b7dd (patch) | |
tree | 60e681b0e119d50022500fbc0f91cbdd4d7c979c /slideshow/source/inc/activitiesqueue.hxx | |
parent | 19b34c0039c6293f9b37aa70f8055aa2be28ba09 (diff) |
tdf#94306 replace boost::noncopyable in sfx2 to sot
Replace with C++11 delete copy-constructur
and copy-assignment.
Remove boost/noncopyable.hpp includes.
Add missing default ctors.
Make some overloaded ctors explicit,
seems cppcheck doesn't flag: T(const template<X>& rx).
Change-Id: I63c5a3ac84a33ea6d49868e2d9aa281ada79958e
Reviewed-on: https://gerrit.libreoffice.org/24050
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'slideshow/source/inc/activitiesqueue.hxx')
-rw-r--r-- | slideshow/source/inc/activitiesqueue.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/slideshow/source/inc/activitiesqueue.hxx b/slideshow/source/inc/activitiesqueue.hxx index 2b03b9ff47ed..5dd2f8eeba97 100644 --- a/slideshow/source/inc/activitiesqueue.hxx +++ b/slideshow/source/inc/activitiesqueue.hxx @@ -28,7 +28,6 @@ #include <canvas/elapsedtime.hxx> #include <memory> -#include <boost/noncopyable.hpp> /* Definition of ActivitiesQueue class */ @@ -42,7 +41,7 @@ namespace slideshow activity objects to this class, which are called in a round-robin fashion. */ - class ActivitiesQueue : private ::boost::noncopyable + class ActivitiesQueue { public: /** Create an ActivitiesQueue. @@ -51,9 +50,11 @@ namespace slideshow Pointer to global presentation timer. Used for adjusting and holding global presentation time. */ - ActivitiesQueue( + explicit ActivitiesQueue( const std::shared_ptr< ::canvas::tools::ElapsedTime >& pPresTimer ); ~ActivitiesQueue(); + ActivitiesQueue(const ActivitiesQueue&) = delete; + ActivitiesQueue& operator=(const ActivitiesQueue&) = delete; /** Add the given activity to the queue. */ |