Implemented the Handle assignment operators properly 80/25880/1
authorPaul Wisbey <p.wisbey@samsung.com>
Mon, 11 Aug 2014 17:41:40 +0000 (18:41 +0100)
committerPaul Wisbey <p.wisbey@samsung.com>
Mon, 11 Aug 2014 17:41:48 +0000 (18:41 +0100)
[Problem] Some unsafe handle assignments are allowed by the compiler e.g.
Actor notAnImageActor = Actor::New();
ImageActor notSafeToUse = notAnImageActor;
[Cause] using BaseHandle::operator= is unsafe
[Solution] Implemented the Handle assignment operators properly

Change-Id: If4cd798d2cb394ac4dbac96b1c17598a2aae8ee6

automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-style-monitor.h
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-timer.h

index 1537e05..3876b2f 100644 (file)
@@ -51,7 +51,6 @@ public: // Creation & Destruction
   static StyleMonitor Get();
   ~StyleMonitor();
   static StyleMonitor DownCast( BaseHandle handle );
-  using BaseHandle::operator=;
 
 public: // Style Information
   std::string GetDefaultFontFamily() const;
index 8f23022..c479fb8 100644 (file)
@@ -47,7 +47,6 @@ public:
   Timer& operator=( const Timer& timer );
   ~Timer();
   static Timer DownCast( BaseHandle handle );
-  using BaseHandle::operator=;
   void Start();
   void Stop();
   void SetInterval( unsigned int milliSec );