Changed all destructors to virtual and removed pure virtual destructors 32/82132/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Mon, 1 Aug 2016 04:36:21 +0000 (13:36 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Mon, 1 Aug 2016 04:53:01 +0000 (13:53 +0900)
Change-Id: I50eed06329c9f0953de191f8a431b8a43cbe7431

19 files changed:
scl/include/sclactionstate.h
scl/include/sclanimator.h
scl/include/sclcontext.h
scl/include/sclcontroller.h
scl/include/sclerroradjustment.h
scl/include/scleventhandler.h
scl/include/sclevents.h
scl/include/sclfeedback.h
scl/include/sclfontproxy.h
scl/include/sclgraphics.h
scl/include/sclgwes.h
scl/include/sclimageproxy.h
scl/include/sclkeyfocushandler.h
scl/include/sclresourcecache.h
scl/include/sclui.h
scl/include/scluibuilder.h
scl/include/scluiimpl.h
scl/include/sclutils.h
scl/include/sclwindows.h

index 7d41cee..bb19635 100644 (file)
@@ -38,7 +38,7 @@ class CSCLActionState
 private:
     CSCLActionState();
 public:
-    ~CSCLActionState();
+    virtual ~CSCLActionState();
 
     /* for singleton */
     static CSCLActionState* get_instance();
index dd5171e..826c20b 100644 (file)
@@ -66,9 +66,11 @@ typedef struct {
 class CSCLAnimatorImpl
 {
 public:
+    CSCLAnimatorImpl() {}
+    virtual ~CSCLAnimatorImpl() {}
+
     virtual void init() = 0;
     virtual void fini() = 0;
-    virtual ~CSCLAnimatorImpl() = 0;
 
     /* By default, animation is not supported */
     virtual sclboolean check_animation_supported() { return FALSE; }
@@ -83,7 +85,7 @@ class CSCLAnimator
 private:
     CSCLAnimator();
 public :
-    ~CSCLAnimator();
+    virtual ~CSCLAnimator();
 
     static CSCLAnimator* get_instance();
 
index db2b5a7..d25d31f 100644 (file)
@@ -87,7 +87,7 @@ class CSCLContext
 private:
     CSCLContext();
 public:
-    ~CSCLContext();
+    virtual ~CSCLContext();
 
     /* reset to the default context status */
     void reset();
index 77b2d1f..0a97612 100644 (file)
@@ -54,7 +54,7 @@ class CSCLController
 private:
     CSCLController();
 public:
-    ~CSCLController();
+    virtual ~CSCLController();
 
     static CSCLController* get_instance();
     void init();
index ddb7643..343db68 100644 (file)
@@ -39,7 +39,7 @@ public:
     CSCLErrorAdjustment();
     CSCLErrorAdjustment(sclwindow parent);
 
-    ~CSCLErrorAdjustment();
+    virtual ~CSCLErrorAdjustment();
     static CSCLErrorAdjustment* get_instance();
 
 private:
index 96a5e96..6823279 100644 (file)
@@ -36,7 +36,7 @@ class CSCLEventHandler : public ISCLUIEventCallback
 private:
     CSCLEventHandler();
 public:
-    ~CSCLEventHandler();
+    virtual ~CSCLEventHandler();
 
     static CSCLEventHandler* get_instance();
 
index 32ba7bf..487a66c 100644 (file)
@@ -54,9 +54,11 @@ typedef enum _SCLMouseEvent {
 class CSCLEventsImpl
 {
 public :
+    CSCLEventsImpl() {}
+    virtual ~CSCLEventsImpl() {}
+
     virtual void init() = 0;
     virtual void fini() = 0;
-    virtual ~CSCLEventsImpl() = 0;
 
     virtual void connect_window_events(const sclwindow wnd, const sclint evt) = 0;
     virtual void create_timer(const scl16 id, const scl32 interval, scl16 value, sclboolean addToMap) = 0;
@@ -70,7 +72,7 @@ class CSCLEvents
 {
 public :
     CSCLEvents();
-    ~CSCLEvents();
+    virtual ~CSCLEvents();
 
     static CSCLEvents* get_instance();
 
index 5400b6e..426c870 100644 (file)
@@ -41,7 +41,7 @@ public:
     CSCLFeedback();
     CSCLFeedback(sclwindow parent);
 
-    ~CSCLFeedback();
+    virtual ~CSCLFeedback();
     static CSCLFeedback* get_instance();
 
 private:
index 12ca548..ecaeb96 100644 (file)
@@ -27,7 +27,7 @@ class CSCLFontProxy
 private:
     CSCLFontProxy();
 public :
-    ~CSCLFontProxy();
+    virtual ~CSCLFontProxy();
 
     static CSCLFontProxy* get_instance();
 
index 0443dff..b08bef6 100644 (file)
@@ -67,9 +67,11 @@ const SclColor SCLCOLOR_BLUE = {0, 0, 255, 255};
 class CSCLGraphicsImpl
 {
 public:
+    CSCLGraphicsImpl() {}
+    virtual ~CSCLGraphicsImpl() {}
+
     virtual void init() = 0;
     virtual void fini() = 0;
-    virtual ~CSCLGraphicsImpl() = 0;
 
     friend class CSCLGraphics;
 private:
@@ -103,7 +105,7 @@ class CSCLGraphics
 private:
     CSCLGraphics();
 public :
-    ~CSCLGraphics();
+    virtual ~CSCLGraphics();
 
     static CSCLGraphics* get_instance();
 
index 67b47b4..6df9ceb 100644 (file)
@@ -45,7 +45,7 @@ class CSCLGwes
 private:
     CSCLGwes();
 public :
-    ~CSCLGwes();
+    virtual ~CSCLGwes();
 
     static CSCLGwes* get_instance();
 
index 0c3c799..3050b4d 100644 (file)
@@ -25,7 +25,7 @@ class CSCLImageProxy
 private:
        CSCLImageProxy();
 public :
-    ~CSCLImageProxy();
+    virtual ~CSCLImageProxy();
     static CSCLImageProxy* get_instance();
 
     sclimage get_image(const sclchar* image_path);
index f8ba3f6..6f5f17e 100644 (file)
@@ -88,7 +88,7 @@ typedef struct _SclPopupNavigationInfo {
 class CSCLKeyFocusHandler
 {
 public:
-    ~CSCLKeyFocusHandler();
+    virtual ~CSCLKeyFocusHandler();
 
     static CSCLKeyFocusHandler* get_instance();
 
index dcad2d1..548d2b1 100644 (file)
@@ -45,7 +45,7 @@ private:
     CSCLResourceCache();
 
 public:
-    ~CSCLResourceCache();
+    virtual ~CSCLResourceCache();
 
     static CSCLResourceCache* get_instance();
 
index 3d7b849..e9fe2ca 100644 (file)
@@ -41,7 +41,7 @@ class CSCLUI
 {
 public:
     CSCLUI();
-    ~CSCLUI();
+    virtual ~CSCLUI();
 
     /*
      * @brief This API initializes SCL library
index 52e04fb..d0a2bcc 100644 (file)
@@ -41,7 +41,7 @@ class CSCLUIBuilder
 private:
     CSCLUIBuilder();
 public:
-    ~CSCLUIBuilder();
+    virtual ~CSCLUIBuilder();
 
     static CSCLUIBuilder* get_instance();
 
index ee4c00b..350b657 100644 (file)
@@ -38,7 +38,7 @@ private:
     CSCLUIImpl();
 
 public:
-    ~CSCLUIImpl();
+    virtual ~CSCLUIImpl();
     static CSCLUIImpl* get_instance();
 
     sclboolean init(sclwindow parent, SCLParserType parser_type, const char *entry_filepath);
index 4e70ebf..c2fa8fc 100644 (file)
@@ -170,7 +170,7 @@ class CSCLUtils : public _CSCLUtils
 private:
     CSCLUtils();
 public :
-    ~CSCLUtils();
+    virtual ~CSCLUtils();
 
     static CSCLUtils* get_instance();
 
index 9396081..a8466ec 100644 (file)
@@ -69,9 +69,11 @@ typedef struct _SclWindowContext {
 class CSCLWindowsImpl
 {
 public :
+    CSCLWindowsImpl() {}
+    virtual ~CSCLWindowsImpl() {}
+
     virtual void init() = 0;
     virtual void fini() = 0;
-    virtual ~CSCLWindowsImpl() = 0;
 
     virtual sclwindow create_base_window(const sclwindow parent,
         SclWindowContext *window_context, scl16 width, scl16 height) = 0;
@@ -100,7 +102,7 @@ class CSCLWindows
 private:
     CSCLWindows();
 public :
-    ~CSCLWindows();
+    virtual ~CSCLWindows();
 
     static CSCLWindows* get_instance();