use modern construct '= default' for special functions.
[platform/core/uifw/dali-core.git] / dali / public-api / object / property.cpp
index 1ac8453..37a272a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 
 namespace Dali
 {
-
-const int32_t Property::INVALID_INDEX           = -1;
-const int32_t Property::INVALID_KEY             = -1;
-const int32_t Property::INVALID_COMPONENT_INDEX = -1;
-
 Property::Property(Handle& obj, Property::Index propIndex)
 : object(obj),
   propertyIndex(propIndex),
@@ -47,7 +42,7 @@ Property::Property(Handle& obj, const std::string& propertyName)
   propertyIndex(Property::INVALID_INDEX),
   componentIndex(Property::INVALID_COMPONENT_INDEX)
 {
-  propertyIndex = object.GetPropertyIndex( propertyName );
+  propertyIndex = object.GetPropertyIndex(propertyName);
 }
 
 Property::Property(Handle& obj, const std::string& propertyName, int32_t compIndex)
@@ -55,11 +50,9 @@ Property::Property(Handle& obj, const std::string& propertyName, int32_t compInd
   propertyIndex(Property::INVALID_INDEX),
   componentIndex(compIndex)
 {
-  propertyIndex = object.GetPropertyIndex( propertyName );
+  propertyIndex = object.GetPropertyIndex(propertyName);
 }
 
-Property::~Property()
-{
-}
+Property::~Property() = default;
 
 } // namespace Dali