diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-11 20:07:20 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-11 16:25:02 -0700 |
commit | cb2f09a8e3673e420970d1d2c0f5c1688a0e1fbf (patch) | |
tree | a115d200a6bbb6d28b31ad4b27bb9d1e1c2d1d0d /smtk-import | |
parent | ce8199cdfdef97437ad85178c7104f307baf018b (diff) | |
download | subsurface-cb2f09a8e3673e420970d1d2c0f5c1688a0e1fbf.tar.gz |
Geo lookup: make the QNetworkAccessManager a static object
According to Qt's docs, the QNetworkAccessManager is supposed
to be a long-living object. Therefore, don't create one on
every geo-lookup, but a single object for all geo-lookups.
By making the object function-local it is only initiaized
on first use. Morover this limits the amount of concurrent
geo lookups.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'smtk-import')
0 files changed, 0 insertions, 0 deletions