Deleted Move/Copy operators & constructors from Internal::Control 56/243056/4
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 2 Sep 2020 19:55:54 +0000 (20:55 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 2 Sep 2020 20:08:48 +0000 (20:08 +0000)
Also added override keywords to methods that required it

Change-Id: If624801451472dce9e2a5d1f2d2d5afa8fc7cb64

dali-toolkit/public-api/controls/control-impl.h

index e49386d..160ac55 100644 (file)
@@ -610,12 +610,12 @@ public: // API for derived classes to override
   /**
    * @copydoc ConnectionTrackerInterface::SignalConnected
    */
   /**
    * @copydoc ConnectionTrackerInterface::SignalConnected
    */
-  virtual void SignalConnected( SlotObserver* slotObserver, CallbackBase* callback );
+  virtual void SignalConnected( SlotObserver* slotObserver, CallbackBase* callback ) override;
 
   /**
    * @copydoc ConnectionTrackerInterface::SignalDisconnected
    */
 
   /**
    * @copydoc ConnectionTrackerInterface::SignalDisconnected
    */
-  virtual void SignalDisconnected( SlotObserver* slotObserver, CallbackBase* callback );
+  virtual void SignalDisconnected( SlotObserver* slotObserver, CallbackBase* callback ) override;
 
   /**
    * @brief Retrieves the extension for this control.
 
   /**
    * @brief Retrieves the extension for this control.
@@ -631,9 +631,12 @@ public: // API for derived classes to override
 private:
 
   /// @cond internal
 private:
 
   /// @cond internal
-  // Undefined
-  DALI_INTERNAL Control( const Control& );
-  DALI_INTERNAL Control& operator=( const Control& );
+
+  // Not copyable or movable
+  DALI_INTERNAL Control( const Control& ) = delete; ///< Deleted copy constructor.
+  DALI_INTERNAL Control( Control&& ) = delete; ///< Deleted move constructor.
+  DALI_INTERNAL Control& operator=( const Control& ) = delete; ///< Deleted copy assignment operator.
+  DALI_INTERNAL Control& operator=( Control&& ) = delete; ///< Deleted move assignment operator.
 
 public:
   class DALI_INTERNAL Impl; // Class declaration is public so we can internally add devel API's to the Controls Impl
 
 public:
   class DALI_INTERNAL Impl; // Class declaration is public so we can internally add devel API's to the Controls Impl