path: root/src/xml
diff options
authorEdward Welbourne <>2016-01-18 12:45:11 +0100
committerEdward Welbourne <>2016-01-20 17:12:58 +0000
commit57e024cc81c55b8c442db9f719f19aebb321ef37 (patch)
tree4e8a482c2ef41fcc2888812461e82bf8b40e779d /src/xml
parentaa196457da54d007dc443e81f200a62f10f7b915 (diff)
Avoid shadowing a name (and use the outer variable an extra time)
QDateTimeParser::parseFormat()'s top-level scope has a const int max; this was shadowed by a short-lived max in an inner scope; and the outer scope's max could be re-used one more time after that to save re-evaluating the same unchanged expression it held. Change-Id: I9f07452bb0b4e5ff4bcf6396d42d1419de6276fa Reviewed-by: Thiago Macieira <> Reviewed-by: Jędrzej Nowacki <>
Diffstat (limited to 'src/xml')
0 files changed, 0 insertions, 0 deletions