subsurface/core/subsurface-qt
Berthold Stoeger b72cc1f317 Cleanup: consistently use qPrintable()
Replace constructs of the kind
  s.toUtf8().data(),
  s.toUtf8().constData(),
  s.toLocal8Bit().data(),
  s.toLocal8Bit.constData() or
  qUtf8Printable(s)
by
  qPrintable(s).

This is concise, consistent and - in principle - more performant than
the .data() versions.

Sadly, owing to a suboptimal implementation, qPrintable(s) currently
is a pessimization compared to s.toUtf8().data(). A fix is scheduled for
new Qt versions: https://codereview.qt-project.org/#/c/221331/

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-03-14 13:55:36 +02:00
..
CylinderObjectHelper.cpp Add SPDX header to remaining core files 2017-04-29 13:32:55 -07:00
CylinderObjectHelper.h Add SPDX header to remaining core files 2017-04-29 13:32:55 -07:00
DiveObjectHelper.cpp DiveObjectHelper: add dive_site_uuid() 2018-03-11 11:40:12 -07:00
DiveObjectHelper.h DiveObjectHelper: add dive_site_uuid() 2018-03-11 11:40:12 -07:00
SettingsObjectWrapper.cpp Cleanup: consistently use qPrintable() 2018-03-14 13:55:36 +02:00
SettingsObjectWrapper.h Add a preference to turn on ICD warnings 2018-02-10 10:26:34 +01:00