diff --git a/src/Platform/AbstractXApplication.h b/src/Platform/AbstractXApplication.h index 34f5194d9..549a01738 100644 --- a/src/Platform/AbstractXApplication.h +++ b/src/Platform/AbstractXApplication.h @@ -73,6 +73,18 @@ class AbstractXApplication { class MouseEvent; class MouseMoveEvent; + /** @brief Copying is not allowed */ + AbstractXApplication(const AbstractXApplication&) = delete; + + /** @brief Moving is not allowed */ + AbstractXApplication(AbstractXApplication&&) = delete; + + /** @brief Copying is not allowed */ + AbstractXApplication& operator=(const AbstractXApplication&) = delete; + + /** @brief Moving is not allowed */ + AbstractXApplication& operator=(AbstractXApplication&&) = delete; + /** * @brief Execute main loop * @return Value for returning from `main()`. diff --git a/src/Platform/GlutApplication.h b/src/Platform/GlutApplication.h index 1a45612c7..f292cceee 100644 --- a/src/Platform/GlutApplication.h +++ b/src/Platform/GlutApplication.h @@ -102,6 +102,18 @@ class GlutApplication { /** @copydoc Sdl2Application::Sdl2Application(const Arguments&, std::nullptr_t) */ explicit GlutApplication(const Arguments& arguments, std::nullptr_t); + /** @brief Copying is not allowed */ + GlutApplication(const GlutApplication&) = delete; + + /** @brief Moving is not allowed */ + GlutApplication(GlutApplication&&) = delete; + + /** @brief Copying is not allowed */ + GlutApplication& operator=(const GlutApplication&) = delete; + + /** @brief Moving is not allowed */ + GlutApplication& operator=(GlutApplication&&) = delete; + /** @copydoc Sdl2Application::exec() */ int exec() { glutMainLoop(); diff --git a/src/Platform/NaClApplication.h b/src/Platform/NaClApplication.h index 0c0da3f16..28dbd438c 100644 --- a/src/Platform/NaClApplication.h +++ b/src/Platform/NaClApplication.h @@ -160,6 +160,18 @@ class NaClApplication: public pp::Instance, public pp::Graphics3DClient, public /** @copydoc Sdl2Application::Sdl2Application(const Arguments&, std::nullptr_t) */ explicit NaClApplication(const Arguments& arguments, std::nullptr_t); + /** @brief Copying is not allowed */ + NaClApplication(const NaClApplication&) = delete; + + /** @brief Moving is not allowed */ + NaClApplication(NaClApplication&&) = delete; + + /** @brief Copying is not allowed */ + NaClApplication& operator=(const NaClApplication&) = delete; + + /** @brief Moving is not allowed */ + NaClApplication& operator=(NaClApplication&&) = delete; + /** @brief Whether the application runs fullscreen */ bool isFullscreen(); diff --git a/src/Platform/Sdl2Application.h b/src/Platform/Sdl2Application.h index 1412d4ab1..8458fec55 100644 --- a/src/Platform/Sdl2Application.h +++ b/src/Platform/Sdl2Application.h @@ -161,6 +161,18 @@ class Sdl2Application { */ explicit Sdl2Application(const Arguments& arguments, std::nullptr_t); + /** @brief Copying is not allowed */ + Sdl2Application(const Sdl2Application&) = delete; + + /** @brief Moving is not allowed */ + Sdl2Application(Sdl2Application&&) = delete; + + /** @brief Copying is not allowed */ + Sdl2Application& operator=(const Sdl2Application&) = delete; + + /** @brief Moving is not allowed */ + Sdl2Application& operator=(Sdl2Application&&) = delete; + /** * @brief Execute main loop * @return Value for returning from `main()`. diff --git a/src/Platform/WindowlessGlxApplication.h b/src/Platform/WindowlessGlxApplication.h index 720c5320a..3b531f85e 100644 --- a/src/Platform/WindowlessGlxApplication.h +++ b/src/Platform/WindowlessGlxApplication.h @@ -95,6 +95,18 @@ class WindowlessGlxApplication { /** @copydoc Sdl2Application::Sdl2Application(const Arguments&, std::nullptr_t) */ explicit WindowlessGlxApplication(const Arguments& arguments, std::nullptr_t); + /** @brief Copying is not allowed */ + WindowlessGlxApplication(const WindowlessGlxApplication&) = delete; + + /** @brief Moving is not allowed */ + WindowlessGlxApplication(WindowlessGlxApplication&&) = delete; + + /** @brief Copying is not allowed */ + WindowlessGlxApplication& operator=(const WindowlessGlxApplication&) = delete; + + /** @brief Moving is not allowed */ + WindowlessGlxApplication& operator=(WindowlessGlxApplication&&) = delete; + /** * @brief Execute application * @return Value for returning from `main()`. diff --git a/src/Platform/WindowlessNaClApplication.h b/src/Platform/WindowlessNaClApplication.h index f2b99f145..277b82111 100644 --- a/src/Platform/WindowlessNaClApplication.h +++ b/src/Platform/WindowlessNaClApplication.h @@ -111,6 +111,18 @@ class WindowlessNaClApplication: public pp::Instance, public pp::Graphics3DClien /** @copydoc Sdl2Application::Sdl2Application(const Arguments&, std::nullptr_t) */ explicit WindowlessNaClApplication(const Arguments& arguments, std::nullptr_t); + /** @brief Copying is not allowed */ + WindowlessNaClApplication(const WindowlessNaClApplication&) = delete; + + /** @brief Moving is not allowed */ + WindowlessNaClApplication(WindowlessNaClApplication&&) = delete; + + /** @brief Copying is not allowed */ + WindowlessNaClApplication& operator=(const WindowlessNaClApplication&) = delete; + + /** @brief Moving is not allowed */ + WindowlessNaClApplication& operator=(WindowlessNaClApplication&&) = delete; + /** * @brief Execute application * @return Value for returning from `main()`.