Merge "Enable -Wnon-virtual-dtor to avoid incorrect C++ code sneaking in" into devel...
[platform/core/uifw/dali-core.git] / dali / internal / update / common / uniform-map.h
index 8ca4246..9b5bb4c 100644 (file)
@@ -64,7 +64,7 @@ public:
 /**
  * The UniformMap class is used to map uniform names to property values. It is available
  * in all of the classes responsible for rendering:
- * Actor, Renderer, Geometry, Material, Shader.
+ * Actor, Renderer, Geometry, TextureSet, Shader.
  *
  * It can be observed for changes to the mapping table.
  */
@@ -74,7 +74,19 @@ public:
   class Observer
   {
   public:
+
+    /**
+     * Inform observer that uniform mappings have been changed
+     * @param mappings
+     */
     virtual void UniformMappingsChanged(const UniformMap& mappings) = 0;
+
+  protected:
+
+    /**
+     * Virtual destructor, no deletion through this interface
+     */
+    virtual ~Observer() {}
   };
 
   /**