aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlpropertycachecreator_p.h
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2023-09-04 14:12:38 +0200
committerUlf Hermann <ulf.hermann@qt.io>2023-09-04 22:31:04 +0200
commit8742807c2f1a3937b2d05aae8490a7a8e084e514 (patch)
tree7692aea1cfc5d931a3cddbe729190a73e131c7db /src/qml/qml/qqmlpropertycachecreator_p.h
parentffa1932843808420f982f517b1e9bfae3c9db5ab (diff)
QQmlSignalNames: Optimize a bit
We don't have to repeat the strlen("on") and strlen("Changed") because we can phrase them as constexpr statics. The same holds for the actual strings. We can store them as latin-1 so that we don't have to construct temporary QStrings. When calculating the signal name from the handler name, we don't have to check the signal name length twice. And finally, we can reserve() the QString to return when creating a handler name. Change-Id: Ied0c33638d9e72df6360dd04b3f517d72beca21b Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io> Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlpropertycachecreator_p.h')
0 files changed, 0 insertions, 0 deletions