qt6-bb10/tests/auto/widgets/dialogs
Marc Mutz be94e009ae QFileDialog: optimize string handling in qt_tildeExpansion
- Instead of QString::split()-ing the path, just to inspect the
  first item in the list returned, simply find the location of
  the first separator and work with that.
  -> saves creating a QList, and its QString elements
  -> saves attempted detaches of that list when calling
     first()
- When extracting the user name, don't do it in a QString, do
  it in a QStringRef.
- When constructing the result, don't use QString::replace(),
  use QStringBuilder with a QStringRef into the original string.
- Eradicate the out parameter, it is easily calculated from the
  return value.
- Don't calculate userName on VXWORKS and INTEGRITY, where it
  is not used. Requires a different #ifdef sequence. Fixed
  preprocessor directives' indention as a drive-by.

Costs 84b in text size on optimized GCC 4.9 Linux AMD64 builds.

Change-Id: I61f1e8d558db7fb0c5c1170bdfd6f5ac1f1a9e62
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
2016-01-01 23:32:13 +00:00
..
qcolordialog Tests: Remove empty init/cleanup slots, constructors and destructors. 2015-12-10 05:26:05 +00:00
qdialog Merge remote-tracking branch 'origin/5.6' into dev 2015-11-04 20:18:14 +01:00
qerrormessage Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
qfiledialog QFileDialog: optimize string handling in qt_tildeExpansion 2016-01-01 23:32:13 +00:00
qfiledialog2 Merge remote-tracking branch 'origin/5.6' into dev 2015-12-18 08:37:31 +01:00
qfilesystemmodel Merge remote-tracking branch 'origin/5.6' into dev 2015-12-18 08:37:31 +01:00
qfontdialog Merge remote-tracking branch 'origin/5.6' into dev 2015-11-18 09:01:51 +01:00
qinputdialog tests/auto/widgets: Remove some placeholder formatting. 2015-10-19 12:39:16 +00:00
qmessagebox Merge remote-tracking branch 'origin/5.6' into dev 2015-11-18 09:01:51 +01:00
qprogressdialog Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
qsidebar Tests: Remove empty init/cleanup slots, constructors and destructors. 2015-12-10 05:26:05 +00:00
qwizard Tests: Remove empty init/cleanup slots, constructors and destructors. 2015-12-10 05:26:05 +00:00
dialogs.pro Replace win32-g++ with mingw scope 2014-01-17 12:08:24 +01:00