diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2024-09-17 10:56:52 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2024-10-08 08:26:37 +0000 |
| commit | 2fda30053dcf13356d72f9a8116413d26bcb14a1 (patch) | |
| tree | b03d3ce25a311baaef7fbf3a27ebd323162446cb /src/corelib/kernel/qmetaobjectbuilder.cpp | |
| parent | 724a3cab887e4dcc455389e929ac2b97ebedb94a (diff) | |
qxmlstreamparser_p.h: fix -Wshadow in parse()
The name `prefix` is also used for a data member, and the very next
rule actually assigns to it, so using the same name in this huge
switch is actually impairing readability.
Fix by abbreviating the local variable.
This code predates the start of the public history.
Pick-to: 6.8 6.7 6.5 6.2 5.15
Task-number: QTBUG-126219
Change-Id: Iece828a9303b5449397ac93e51f540bf890f7d08
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Matthias Rauter <matthias.rauter@qt.io>
Reviewed-by: Lena Biliaieva <lena.biliaieva@qt.io>
Diffstat (limited to 'src/corelib/kernel/qmetaobjectbuilder.cpp')
0 files changed, 0 insertions, 0 deletions
