Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Replace toUtf8().data() by toUtf8().constData()
All your uses of toUtf8().data() actually just need a const char* So use constData() that is semantically more correct, and documented to be faster. From http://doc.qt.io/qt-5/qbytearray.html#data "For read-only access, constData() is faster because it never causes a deep copy to occur."
- Loading branch information
Showing
with
100 additions
and 100 deletions.
- +1 −1 python/core/auto_generated/expression/qgsexpression.sip.in
- +1 −1 python/core/auto_generated/geometry/qgscircle.sip.in
- +1 −1 python/core/auto_generated/geometry/qgscircularstring.sip.in
- +1 −1 python/core/auto_generated/geometry/qgscompoundcurve.sip.in
- +1 −1 python/core/auto_generated/geometry/qgscurvepolygon.sip.in
- +1 −1 python/core/auto_generated/geometry/qgsellipse.sip.in
- +1 −1 python/core/auto_generated/geometry/qgsgeometry.sip.in
- +1 −1 python/core/auto_generated/geometry/qgslinestring.sip.in
- +1 −1 python/core/auto_generated/geometry/qgsmulticurve.sip.in
- +1 −1 python/core/auto_generated/geometry/qgsmultilinestring.sip.in
- +1 −1 python/core/auto_generated/geometry/qgsmultipoint.sip.in
- +1 −1 python/core/auto_generated/geometry/qgsmultipolygon.sip.in
- +1 −1 python/core/auto_generated/geometry/qgspoint.sip.in
- +1 −1 python/core/auto_generated/geometry/qgspolygon.sip.in
- +1 −1 python/core/auto_generated/geometry/qgsrectangle.sip.in
- +1 −1 python/core/auto_generated/qgsfield.sip.in
- +1 −1 python/core/auto_generated/qgspointxy.sip.in
- +1 −1 src/app/qgisapp.cpp
- +1 −1 src/core/expression/qgsexpression.h
- +1 −1 src/core/geometry/qgscircle.h
- +1 −1 src/core/geometry/qgscircularstring.h
- +1 −1 src/core/geometry/qgscompoundcurve.h
- +1 −1 src/core/geometry/qgscurvepolygon.h
- +1 −1 src/core/geometry/qgsellipse.h
- +1 −1 src/core/geometry/qgsgeometry.h
- +1 −1 src/core/geometry/qgslinestring.h
- +1 −1 src/core/geometry/qgsmulticurve.h
- +1 −1 src/core/geometry/qgsmultilinestring.h
- +1 −1 src/core/geometry/qgsmultipoint.h
- +1 −1 src/core/geometry/qgsmultipolygon.h
- +1 −1 src/core/geometry/qgspoint.h
- +1 −1 src/core/geometry/qgspolygon.h
- +1 −1 src/core/geometry/qgsrectangle.h
- +3 −3 src/core/qgsapplication.cpp
- +1 −1 src/core/qgsfield.h
- +1 −1 src/core/qgspointxy.h
- +1 −1 src/core/qgsxmlutils.h
- +2 −2 src/crashhandler/main.cpp
- +6 −6 src/gui/qgsprojectionselectiontreewidget.cpp
- +1 −1 src/native/mac/qgsmacnative.mm
- +1 −1 src/plugins/grass/qgsgrassnewmapset.cpp
- +1 −1 src/plugins/grass/qgsgrassplugin.cpp
- +4 −4 src/plugins/grass/qtermwidget/Session.cpp
- +1 −1 src/providers/grass/qgis.r.in.cpp
- +4 −4 src/providers/grass/qgis.v.in.cpp
- +13 −13 src/providers/grass/qgsgrass.cpp
- +5 −5 src/providers/grass/qgsgrassimport.cpp
- +2 −2 src/providers/grass/qgsgrassprovider.cpp
- +3 −3 src/providers/grass/qgsgrassvector.cpp
- +5 −5 src/providers/grass/qgsgrassvectormap.cpp
- +11 −11 src/providers/oracle/qgsoracletablecache.cpp
- +2 −2 src/python/qgspythonutilsimpl.cpp
Oops, something went wrong.