diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-11-04 12:41:32 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-12-08 16:24:57 +0000 |
commit | d6ffbedc49c352755369ebf29022b707b3b9d6a7 (patch) | |
tree | 8ed57f5fdc4373efed2aa57e4ee99937b9875389 /src/corelib/tools/qmap.cpp | |
parent | 3ec31ef9c5acd57a4a59c0d5f5e20b8d9a19bfa1 (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 'src/corelib/tools/qmap.cpp')
0 files changed, 0 insertions, 0 deletions