use string_view instead of const string literals. 22/245322/4
authorSubhransu Mohanty <sub.mohanty@samsung.com>
Wed, 7 Oct 2020 05:16:26 +0000 (14:16 +0900)
committerDavid Steele <david.steele@samsung.com>
Tue, 3 Nov 2020 14:31:12 +0000 (14:31 +0000)
commite3eaa6c6cf37a071ebbb472375137355d456c5ea
tree9b5ac3682abaf432914a6080921eaa33ac6e5745
parent6bd7c97fb0d7506507a065a80406e429e0f7332f
use string_view instead of const string literals.

as constexpr stringview calculates the length of the string during
compiletime. the == comparison is fast as it first checks whether
the size of the both string are same before calling the expensive
compare() function.

Change-Id: I996faed4d82e5c478f5f55c31cfe25581aa4bbc9
automated-tests/src/dali/utc-Dali-Layer.cpp
automated-tests/src/dali/utc-Dali-Stage.cpp
dali/internal/event/actors/actor-impl.cpp
dali/internal/event/actors/layer-impl.cpp
dali/internal/event/animation/animation-impl.cpp
dali/internal/event/common/stage-impl.cpp