summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2020-09-18 16:49:21 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2020-10-05 09:46:58 +0200
commit0ad96eac3895e999aa71a68beaff25f5f2d612e6 (patch)
tree7a281e018472f6a37328ef7dada0062786b43a5d /src/gui
parent3929fd3c56637172d2cb94bcf3130322366a5e75 (diff)
Implement date-time fromString(QStringView...) methods
Inline the QString versions. One const QString & variant remains in each case: the date-time parser keeps a copy of the string it's been given, so the methods calling it have a hybrid method taking the string as the text to parse along with a view as the format. This avoids copying the string when the caller has an actual QString to pass in; the version with QStringView for both parameters has to toString() the text to be parsed, at some point on the way into the parser, but we can avoid that in the QString-accepting ones. Fixes: QTBUG-86172 Change-Id: I6a4390df90945af74a5eac2f0a752febd925ad62 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions