Fix VD prevent issues 26/46826/3
authortaeyoon <taeyoon0.lee@samsung.com>
Wed, 26 Aug 2015 07:19:49 +0000 (16:19 +0900)
committertaeyoon <taeyoon0.lee@samsung.com>
Mon, 31 Aug 2015 01:59:25 +0000 (10:59 +0900)
 - Add copy constructor & assignment operator (undefined, private member)
 - Add KeyFrameBaseSpec<V>& operator=(...)

Change-Id: I02677edba93b122fe59ad3d0e9ee2a4155d5b8fb

dali/internal/common/fixed-size-memory-pool.cpp
dali/internal/common/fixed-size-memory-pool.h
dali/internal/common/memory-pool-object-allocator.h
dali/internal/event/animation/key-frames-impl.h
dali/internal/event/common/notification-manager.h
dali/internal/update/resources/resource-manager.h
dali/public-api/object/property-value.cpp

index 5ee0377..8b69193 100644 (file)
@@ -61,6 +61,13 @@ struct FixedSizeMemoryPool::Impl
     {
       ::operator delete( blockMemory );
     }
+
+  private:
+    // Undefined
+    Block( const Block& block );
+
+    // Undefined
+    Block& operator=( const Block& block );
   };
 
   /**
index bec2c03..4389106 100644 (file)
@@ -89,6 +89,14 @@ public:
 
 private:
 
+  // Undefined
+  FixedSizeMemoryPool( const FixedSizeMemoryPool& fixedSizeMemoryPool );
+
+  // Undefined
+  FixedSizeMemoryPool& operator=( const FixedSizeMemoryPool& fixedSizeMemoryPool );
+
+private:
+
   struct Impl;
   Impl* mImpl;
 
index c110096..0349cf8 100644 (file)
@@ -106,6 +106,14 @@ public:
 
 private:
 
+  // Undefined
+  MemoryPoolObjectAllocator( const MemoryPoolObjectAllocator& memoryPoolObjectAllocator );
+
+  // Undefined
+  MemoryPoolObjectAllocator& operator=( const MemoryPoolObjectAllocator& memoryPoolObjectAllocator );
+
+private:
+
   FixedSizeMemoryPool* mPool;      ///< Memory pool from which allocations are made
 
 };
index cfd0be5..cc574ff 100644 (file)
@@ -171,6 +171,18 @@ protected:
     mKeyFrames = new KeyFrameChannel<V>(KeyFrameChannelBase::Translate, mPVs);
   }
 
+  KeyFrameBaseSpec<V>& operator=( const KeyFrameBaseSpec<V>& keyFrames )
+  {
+    if( *this != keyFrames )
+    {
+      mPVs.clear();
+      mPVs = keyFrames.mPVs;
+      delete mKeyFrames;
+      mKeyFrames = new KeyFrameChannel<V>(KeyFrameChannelBase::Translate, mPVs);
+    }
+    return *this;
+  }
+
   /**
    * Destructor. Ensure progress value pairs are cleared down
    */
index 52775e2..a83efb5 100644 (file)
@@ -81,6 +81,14 @@ public:
 
 private:
 
+  // Undefined
+  NotificationManager( const NotificationManager& notificationManager );
+
+  // Undefined
+  NotificationManager& operator=( const NotificationManager& notificationManager );
+
+private:
+
   struct Impl;
   Impl* mImpl;
 
index 08aaad8..8a28390 100644 (file)
@@ -353,6 +353,14 @@ public:
   void DiscardDeadResources( BufferIndex updateBufferIndex );
 
 private:
+
+  // Undefined
+  ResourceManager( const ResourceManager& resourceManager );
+
+  // Undefined
+  ResourceManager& operator=( const ResourceManager& rhs );
+
+private:
   struct ResourceManagerImpl;
   ResourceManagerImpl* mImpl;
 };
index addc11b..85f407f 100644 (file)
@@ -387,6 +387,7 @@ Property::Value::Value( Type type )
     }
   }
 }
+
 Property::Value::Value( const Property::Value& value )
 : mImpl( NULL )
 {