Commit de2dfd2633b51fb115f8281e2f4fdddb06a72de2
1 parent
fb787dba
Const correctness improvements for Property::Value.
Change-Id: Ie802f27afba4069d87b52ba7256410c4f3cec4ab Signed-off-by: György Straub <g.straub@partner.samsung.com>
Showing
4 changed files
with
4 additions
and
4 deletions
examples/simple-visuals-control/my-control-impl.cpp
| @@ -88,7 +88,7 @@ void MyControl::SetProperty(BaseObject* object, Property::Index index, const Pro | @@ -88,7 +88,7 @@ void MyControl::SetProperty(BaseObject* object, Property::Index index, const Pro | ||
| 88 | { | 88 | { |
| 89 | Toolkit::Visual::Base iconVisual; | 89 | Toolkit::Visual::Base iconVisual; |
| 90 | Toolkit::VisualFactory visualFactory = Toolkit::VisualFactory::Get(); | 90 | Toolkit::VisualFactory visualFactory = Toolkit::VisualFactory::Get(); |
| 91 | - Property::Map* map = value.GetMap(); | 91 | + const Property::Map* map = value.GetMap(); |
| 92 | if(map && !map->Empty()) | 92 | if(map && !map->Empty()) |
| 93 | { | 93 | { |
| 94 | iconVisual = visualFactory.CreateVisual(*map); | 94 | iconVisual = visualFactory.CreateVisual(*map); |
examples/styling/image-channel-control-impl.cpp
| @@ -228,7 +228,7 @@ void ImageChannelControl::SetProperty(BaseObject* object, Property::Index index, | @@ -228,7 +228,7 @@ void ImageChannelControl::SetProperty(BaseObject* object, Property::Index index, | ||
| 228 | } | 228 | } |
| 229 | case Demo::ImageChannelControl::Property::IMAGE_VISUAL: | 229 | case Demo::ImageChannelControl::Property::IMAGE_VISUAL: |
| 230 | { | 230 | { |
| 231 | - Property::Map* map = value.GetMap(); | 231 | + const Property::Map* map = value.GetMap(); |
| 232 | if(map) | 232 | if(map) |
| 233 | { | 233 | { |
| 234 | impl.mVisual = Toolkit::VisualFactory::Get().CreateVisual(*map); | 234 | impl.mVisual = Toolkit::VisualFactory::Get().CreateVisual(*map); |
examples/transitions/shadow-button-impl.cpp
| @@ -336,7 +336,7 @@ void ShadowButton::ResetVisual( | @@ -336,7 +336,7 @@ void ShadowButton::ResetVisual( | ||
| 336 | // we are replacing an existing visual, so force relayout | 336 | // we are replacing an existing visual, so force relayout |
| 337 | RelayoutRequest(); | 337 | RelayoutRequest(); |
| 338 | } | 338 | } |
| 339 | - Property::Map* map = value.GetMap(); | 339 | + const Property::Map* map = value.GetMap(); |
| 340 | if(map) | 340 | if(map) |
| 341 | { | 341 | { |
| 342 | visual = Toolkit::VisualFactory::Get().CreateVisual(*map); | 342 | visual = Toolkit::VisualFactory::Get().CreateVisual(*map); |
examples/visual-transitions/beat-control-impl.cpp
| @@ -249,7 +249,7 @@ void BeatControl::SetProperty(BaseObject* object, Property::Index index, const P | @@ -249,7 +249,7 @@ void BeatControl::SetProperty(BaseObject* object, Property::Index index, const P | ||
| 249 | 249 | ||
| 250 | // Determine if a transform.size property exists in the map, and | 250 | // Determine if a transform.size property exists in the map, and |
| 251 | // save it. | 251 | // save it. |
| 252 | - Property::Map* map = value.GetMap(); | 252 | + const Property::Map* map = value.GetMap(); |
| 253 | if(map) | 253 | if(map) |
| 254 | { | 254 | { |
| 255 | Property::Value* value = map->Find(Visual::Property::TRANSFORM, "transform"); | 255 | Property::Value* value = map->Find(Visual::Property::TRANSFORM, "transform"); |