DALI_CFLAGS=-DPLATFORM_TIZEN
# Use C++ 11
-DALI_CFLAGS="$DALI_CFLAGS -std=c++11"
+DALI_CFLAGS="$DALI_CFLAGS -std=c++11 -Wnon-virtual-dtor"
AC_ARG_ENABLE(exportall,
[AC_HELP_STRING([--enable-exportall],
* This property can then be tested for with IsFullyOpaque().
*/
virtual void TestForTransparency() = 0;
+
+ protected:
+
+ /**
+ * Virtual destructor, no deletion through this interface
+ */
+ virtual ~PackedPixelsProfile() {}
};
/**
const unsigned width,
const unsigned height,
const size_t numBytes ) = 0;
+ protected:
+
+ /**
+ * Virtual destructor, no deletion through this interface
+ */
+ virtual ~CompressedProfile() {}
};
virtual const CompressedProfile* GetCompressedProfile() const { return 0; }
*/
void DeletePixelBuffer();
+protected:
+
/**
* A reference counted object may only be deleted by calling Unreference()
*/
* Multi-threading note: this method should be called from the main thread
*/
virtual void NotifyContextRegained() = 0;
+
+protected:
+
+ /**
+ * Virtual destructor, no deletion through this interface
+ */
+ virtual ~ContextNotifierInterface() {}
+
};
} // namespace Integration
*/
virtual void Update(const GestureRequest& request) = 0;
+protected:
+
+ /**
+ * Virtual destructor, no deletion through this interface
+ */
+ virtual ~GestureManager() {}
+
}; // class GestureManager
} // namespace Integration
} // unnamed namespace
+HitTestInterface::~HitTestInterface()
+{
+}
+
bool HitTest( Stage& stage, const Vector2& screenCoordinates, Dali::HitTestAlgorithm::Results& results, Dali::HitTestAlgorithm::HitTestFunction func )
{
bool wasHit( false );
* @return true if the layer should consume the hit, false otherwise.
*/
virtual bool DoesLayerConsumeHit( Layer* layer ) = 0;
+
+protected:
+
+ /**
+ * Virtual destructor, no deletion through this interface
+ */
+ virtual ~HitTestInterface();
+
};
/**
* may not be called (i.e. when shutting down).
*/
virtual void PropertyOwnerDestroyed( PropertyOwner& owner ) = 0;
+
+ protected:
+
+ /**
+ * Virtual destructor, no deletion through this interface
+ */
+ virtual ~Observer() {}
+
};
/**
* Inform the observer of the object that the object is about to be destroyed
*/
virtual void ObservedObjectDestroyed(PropertyOwner& object){}
+
+ protected:
+
+ /**
+ * Virtual destructor, no deletion through this interface
+ */
+ virtual ~Observer() {}
+
};
/**
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() {}
};
/**