summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-11-04 12:41:32 +0100
committerMarc Mutz <marc.mutz@kdab.com>2015-12-08 16:24:57 +0000
commitd6ffbedc49c352755369ebf29022b707b3b9d6a7 (patch)
tree8ed57f5fdc4373efed2aa57e4ee99937b9875389 /tests/auto
parent3ec31ef9c5acd57a4a59c0d5f5e20b8d9a19bfa1 (diff)
QString::vasprintf: Extract Method parse_length_modifier
... and simplify it: De-duplicate ++c by moving it from every case into the switch statement, undoing it only in the default case. Introduce a small helper function can_consume() for dealing with the two-letter length modifiers. Also return the result from each case instead of storing it in a temp variable. Change-Id: I28a527920aabba067ebb2152a67995c8f2ec7ae7 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions