Centralize C-string and QByteArray string length calculation
authorKonstantin Ritt <ritt.ks@gmail.com>
Fri, 11 May 2012 15:41:56 +0000 (18:41 +0300)
committerQt by Nokia <qt-info@nokia.com>
Fri, 25 May 2012 19:49:05 +0000 (21:49 +0200)
commitf728afcd85ba0d172377323bd7318b6e0a4f99a5
tree6a38a01ab200df3dfd97950e8b91e77943644f93
parente96e80687e85b55d06d22a5f1e501a4e4ba3aaa6
Centralize C-string and QByteArray string length calculation

QString::from{Ascii|Latin1|Utf8|Local8Bit} does the string length calculation for us,
so let's use that and don't repeat the copy-paste bugs like the previous commit has fixed.

Change-Id: If0bced3ebaf75b56dde6be1266c47c3fbf89dab0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/tools/qstring.h