projects
/
platform
/
core
/
uifw
/
dali-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed const variables to constexpr where possible.
[platform/core/uifw/dali-core.git]
/
dali
/
public-api
/
object
/
property.cpp
diff --git
a/dali/public-api/object/property.cpp
b/dali/public-api/object/property.cpp
index
cc2386a
..
c80524e
100644
(file)
--- a/
dali/public-api/object/property.cpp
+++ b/
dali/public-api/object/property.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 20
15
Samsung Electronics Co., Ltd.
+ * Copyright (c) 20
20
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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-24,9
+24,6
@@
namespace Dali
{
namespace Dali
{
-const int Property::INVALID_INDEX = -1;
-const int Property::INVALID_COMPONENT_INDEX = -1;
-
Property::Property(Handle& obj, Property::Index propIndex)
: object(obj),
propertyIndex(propIndex),
Property::Property(Handle& obj, Property::Index propIndex)
: object(obj),
propertyIndex(propIndex),
@@
-34,7
+31,7
@@
Property::Property(Handle& obj, Property::Index propIndex)
{
}
{
}
-Property::Property(Handle& obj, Property::Index propIndex, int compIndex)
+Property::Property(Handle& obj, Property::Index propIndex, int
32_t
compIndex)
: object(obj),
propertyIndex(propIndex),
componentIndex(compIndex)
: object(obj),
propertyIndex(propIndex),
componentIndex(compIndex)
@@
-49,7
+46,7
@@
Property::Property(Handle& obj, const std::string& propertyName)
propertyIndex = object.GetPropertyIndex( propertyName );
}
propertyIndex = object.GetPropertyIndex( propertyName );
}
-Property::Property(Handle& obj, const std::string& propertyName, int compIndex)
+Property::Property(Handle& obj, const std::string& propertyName, int
32_t
compIndex)
: object(obj),
propertyIndex(Property::INVALID_INDEX),
componentIndex(compIndex)
: object(obj),
propertyIndex(Property::INVALID_INDEX),
componentIndex(compIndex)