diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-03-31 17:17:13 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-04-02 20:41:09 +0200 |
commit | 333d7e6de434fbe7777f948761ac5e7b5065d83f (patch) | |
tree | 005f749cce8bb29f56656c1283d6ce3867d3b123 /src/3rdparty/dbus-ifaces | |
parent | 6387138a7991b4588639dc48847f175b5afaff84 (diff) |
Clean up QTzTimeZonePrivate::systemTimeZoneId()
The special handling of ":/etc/localtime" should only apply if that's
the exact value of $TZ; the old code would have treated
"/etc/localtime" the same, due to stripping a leading ':' before
checking for it. We can also test whether to do that stripping using
startsWith().
When reading the content of files, avoid QTextStream's trip via
QString and back to QByteArray by using the QFile's readLine()
directly, or by using readAll().
Task-number: QTBUG-75585
Change-Id: I1524529a2c34d83a9fbd00d41c11f2d994dfc49d
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/3rdparty/dbus-ifaces')
0 files changed, 0 insertions, 0 deletions