From 7cd65885f26bd23286c0249f71799c140e3b06c3 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 5 Jul 2016 20:28:24 +0900 Subject: [PATCH] c++: prevent implicit constructor generation. set markers to not generate default constructors by compiler. Change-Id: I925b5a8e7221e66000809fbf34638b8c62c868fb --- src/include/efl/UiBaseView.h | 3 +++ src/include/efl/UiBaseViewmgr.h | 3 +++ src/include/efl/mobile/UiApp.h | 3 +++ src/include/efl/mobile/UiKeyListener.h | 3 +++ src/include/efl/mobile/UiMenu.h | 3 +++ src/include/efl/mobile/UiPopup.h | 3 +++ src/include/efl/mobile/UiStandardView.h | 3 +++ src/include/efl/mobile/UiView.h | 3 +++ src/include/efl/mobile/UiViewmgr.h | 3 +++ 9 files changed, 27 insertions(+) diff --git a/src/include/efl/UiBaseView.h b/src/include/efl/UiBaseView.h index 72ddf85..ea2d9a1 100644 --- a/src/include/efl/UiBaseView.h +++ b/src/include/efl/UiBaseView.h @@ -135,6 +135,9 @@ private: _UI_DECLARE_PRIVATE_IMPL(UiBaseView); _UI_DISABLE_COPY_AND_ASSIGN(UiBaseView); _UI_DECLARE_FRIENDS(UiBaseViewmgr); + + //Don't generate by compiler. + UiBaseView() = delete; }; } diff --git a/src/include/efl/UiBaseViewmgr.h b/src/include/efl/UiBaseViewmgr.h index 8b89e44..25b4e13 100644 --- a/src/include/efl/UiBaseViewmgr.h +++ b/src/include/efl/UiBaseViewmgr.h @@ -208,6 +208,9 @@ private: _UI_DECLARE_PRIVATE_IMPL(UiBaseViewmgr); _UI_DISABLE_COPY_AND_ASSIGN(UiBaseViewmgr); _UI_DECLARE_FRIENDS(UiBaseView); + + //Don't generate by compiler. + UiBaseViewmgr() = delete; }; } diff --git a/src/include/efl/mobile/UiApp.h b/src/include/efl/mobile/UiApp.h index ab8febd..614fd1b 100644 --- a/src/include/efl/mobile/UiApp.h +++ b/src/include/efl/mobile/UiApp.h @@ -63,6 +63,9 @@ public: private: _UI_DISABLE_COPY_AND_ASSIGN(UiApp); + + //Don't generate by compiler. + UiApp() = delete; }; } diff --git a/src/include/efl/mobile/UiKeyListener.h b/src/include/efl/mobile/UiKeyListener.h index d77faeb..f1ec8e6 100644 --- a/src/include/efl/mobile/UiKeyListener.h +++ b/src/include/efl/mobile/UiKeyListener.h @@ -52,6 +52,9 @@ public: * @note This is checking H/W key is menu or not. */ virtual void extendEventProc(UiBaseView *view, Evas_Event_Key_Down *ev); + + //Don't generate by compiler. + UiKeyListener() = delete; }; } diff --git a/src/include/efl/mobile/UiMenu.h b/src/include/efl/mobile/UiMenu.h index 99d9f3f..09b1c06 100644 --- a/src/include/efl/mobile/UiMenu.h +++ b/src/include/efl/mobile/UiMenu.h @@ -121,6 +121,9 @@ private: _UI_DECLARE_PRIVATE_IMPL(UiMenu); _UI_DISABLE_COPY_AND_ASSIGN(UiMenu); _UI_DECLARE_FRIENDS(UiView); + + //Don't generate by compiler. + UiMenu() = delete; }; } diff --git a/src/include/efl/mobile/UiPopup.h b/src/include/efl/mobile/UiPopup.h index def3424..40dcff7 100644 --- a/src/include/efl/mobile/UiPopup.h +++ b/src/include/efl/mobile/UiPopup.h @@ -123,6 +123,9 @@ protected: private: _UI_DECLARE_PRIVATE_IMPL(UiPopup); _UI_DISABLE_COPY_AND_ASSIGN(UiPopup); + + //Don't generate by compiler. + UiPopup() = delete; }; } diff --git a/src/include/efl/mobile/UiStandardView.h b/src/include/efl/mobile/UiStandardView.h index 3bcee51..f04bc6d 100644 --- a/src/include/efl/mobile/UiStandardView.h +++ b/src/include/efl/mobile/UiStandardView.h @@ -217,6 +217,9 @@ protected: private: _UI_DECLARE_PRIVATE_IMPL(UiStandardView); _UI_DISABLE_COPY_AND_ASSIGN(UiStandardView); + + //Don't generate by compiler. + UiStandardView() = delete; }; } diff --git a/src/include/efl/mobile/UiView.h b/src/include/efl/mobile/UiView.h index 5091d77..fdc89c6 100644 --- a/src/include/efl/mobile/UiView.h +++ b/src/include/efl/mobile/UiView.h @@ -147,6 +147,9 @@ private: _UI_DECLARE_FRIENDS(UiMenu); _UI_DECLARE_FRIENDS(UiPopup); _UI_DECLARE_FRIENDS(UiKeyListener); + + //Don't generate by compiler. + UiView() = delete; }; } diff --git a/src/include/efl/mobile/UiViewmgr.h b/src/include/efl/mobile/UiViewmgr.h index fcb5a9f..f613ba3 100644 --- a/src/include/efl/mobile/UiViewmgr.h +++ b/src/include/efl/mobile/UiViewmgr.h @@ -50,6 +50,9 @@ private: _UI_DISABLE_COPY_AND_ASSIGN(UiViewmgr); _UI_DECLARE_FRIENDS(UiView); _UI_DECLARE_FRIENDS(UiApp); + + //Don't generate by compiler. + UiViewmgr() = delete; }; } -- 2.34.1