QString: get rid of public qStringComparisonHelper()
authorKonstantin Ritt <ritt.ks@gmail.com>
Fri, 11 May 2012 15:35:33 +0000 (18:35 +0300)
committerQt by Nokia <qt-info@nokia.com>
Fri, 25 May 2012 19:48:55 +0000 (21:48 +0200)
commite96e80687e85b55d06d22a5f1e501a4e4ba3aaa6
tree15d4ce7a9142e3b5ef7b7357f7ee838c4e654aaa
parent2b15c1b30f8fb5b1b39705f0c60d489e8b5b4ede
QString: get rid of public qStringComparisonHelper()

Unify all it's overloads into a single private helper functionand use this new helper
where possible - so we could optimize all those operators in one step some later
(this also fixes `QBytArray("a\0b") < "a"` didn't respect the \0 while operator==
handles nul(s) correctly);
Add operators <,>,<=,>=(const char*) to QStringRef so that they doesn't create a temporary QString object;
Add missing QT_NO_CAST_FROM_ASCII

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