Coverity fix, Add virtual in the destructor of GlesAbstraction 02/206602/3
authorSeungho, Baek <sbsh.baek@samsung.com>
Wed, 22 May 2019 04:45:07 +0000 (13:45 +0900)
committerSeungho BAEK <sbsh.baek@samsung.com>
Mon, 10 Jun 2019 10:00:42 +0000 (10:00 +0000)
Change-Id: Id5e7bcf0eaa4f477bb04116ab0bedd0005bdc89a
Signed-off-by: Seungho, Baek <sbsh.baek@samsung.com>
dali/internal/graphics/gles/gles-abstraction.h
dali/internal/graphics/gles/gles2-implementation.h
dali/internal/graphics/gles/gles3-implementation.h

index 16f7cd2..8dc63e6 100644 (file)
@@ -32,6 +32,11 @@ class GlesAbstraction
 
 public:
 
+  /**
+   * Destructor
+   */
+  virtual ~GlesAbstraction() {};
+
   virtual void ReadBuffer( GLenum mode ) = 0;
 
   virtual void DrawRangeElements( GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid* indices ) = 0;
index 054d877..5bab59b 100644 (file)
@@ -40,7 +40,7 @@ class Gles2Implementation : public GlesAbstraction
 public:
   Gles2Implementation() {}
 
-  ~Gles2Implementation() {}
+  ~Gles2Implementation() override {}
 
   void ReadBuffer( GLenum mode ) override
   {
index fca29c8..ace3849 100644 (file)
@@ -39,7 +39,7 @@ class Gles3Implementation : public GlesAbstraction
 public:
   Gles3Implementation() {}
 
-  ~Gles3Implementation() {}
+  ~Gles3Implementation() override {}
 
   void ReadBuffer( GLenum mode ) override
   {