diff options
author | Axel Spoerl <axel.spoerl@qt.io> | 2024-04-25 07:24:23 +0200 |
---|---|---|
committer | Axel Spoerl <axel.spoerl@qt.io> | 2024-04-25 09:30:42 +0200 |
commit | 330fa93d6e9003c0ea188b9e703f2b3f0448f8c8 (patch) | |
tree | 3584bc9cd7eadc3150f155450b95e2bf1bac9903 /src/qml/debugger/debugger.pri | |
parent | 73bfb8a5de91ab79d43bc699f956d83d665fd0e0 (diff) |
String accessors used for data roles in a TableModelRow were defined as
static const QString members. supportedRoleNames() returned a hash,
built on each call. String definitions corresponding to data roles were
defined another time in this method.
Define accessor strings as static constexpr QLatin1StringView.
Use these members in supportedRoleNames(), instead of defining the same
strings another time.
Define the hash as static const, instead of building it on each call.
Pick-to: 6.7 6.6
Change-Id: I38752fda85e54b0e9107c31ec8f32c6886b97b90
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/qml/debugger/debugger.pri')
0 files changed, 0 insertions, 0 deletions