use modern construct 'override' in the derive class.
[platform/core/uifw/dali-core.git] / dali / internal / event / events / pan-gesture / pan-gesture-impl.h
index d727263..60ad977 100644 (file)
@@ -31,7 +31,7 @@ namespace Internal
 {
 
 class PanGesture;
-typedef IntrusivePtr< PanGesture > PanGesturePtr;
+using PanGesturePtr = IntrusivePtr<PanGesture>;
 
 /**
  * @copydoc Dali::PanGesture
@@ -43,8 +43,8 @@ public:
   /**
    * @brief Default constructor
    */
-  PanGesture(Gesture::State state)
-  : Gesture(Dali::Gesture::Pan, state)
+  PanGesture(GestureState state)
+  : Gesture(GestureType::PAN, state)
   {
   }
 
@@ -213,7 +213,7 @@ private:
    *
    * A reference counted object may only be deleted by calling Unreference()
    */
-  virtual ~PanGesture() = default;
+  ~PanGesture() override = default;
 
 private:
   Vector2 mVelocity;