/*
- * 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),
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)
propertyIndex(Property::INVALID_INDEX),
componentIndex(compIndex)
{
- propertyIndex = object.GetPropertyIndex( propertyName );
+ propertyIndex = object.GetPropertyIndex(propertyName);
}
-Property::~Property()
-{
-}
+Property::~Property() = default;
} // namespace Dali