[Tizen] Coverity fix, Add virtual in the destructor of GlesAbstraction 05/206605/1 accepted/tizen/unified/20190522.085457 submit/tizen/20190522.055134
authorSeungho, Baek <sbsh.baek@samsung.com>
Wed, 22 May 2019 04:45:07 +0000 (13:45 +0900)
committerSeungho, Baek <sbsh.baek@samsung.com>
Wed, 22 May 2019 05:00:22 +0000 (14:00 +0900)
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
   {