Don't look up a QChar's digit value more than necessary
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 19 Jun 2014 17:56:50 +0000 (10:56 -0700)
committerThiago Macieira <thiago.macieira@intel.com>
Mon, 7 Jul 2014 05:12:10 +0000 (07:12 +0200)
commit7e488626ab484ef8f62be6f80791a0b3adae80ab
treebe99a82d7ed402825d38cca79dfb9b291e0e4a16
parent9f0e5d00ab51cc7c0dc87c8d72f48c4e6edaf120
Don't look up a QChar's digit value more than necessary

It isn't a particularly complex operation, but why waste CPU cycles?

This is the kind of function that should be declared pure/const.

Change-Id: I13f03ef0f87607f7649c66beeb37614a31ef2a10
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
src/corelib/tools/qstring.cpp