diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-08-26 16:55:17 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-09-24 16:14:09 +0200 |
commit | 062e911c6d570a794431023f9f0cb0b02cd85667 (patch) | |
tree | 40206050e820fd17c2eb3092d7f6f2983dd9e54c /src/util | |
parent | cc4799510b3dbe248bfed0ce99b9747e742ddbcf (diff) | |
download | qtlocation-mapboxgl-062e911c6d570a794431023f9f0cb0b02cd85667.tar.gz |
remove shared_from_this() usage
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/filesource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/filesource.cpp b/src/util/filesource.cpp index ec46247b61..339b5b1e1d 100644 --- a/src/util/filesource.cpp +++ b/src/util/filesource.cpp @@ -284,7 +284,7 @@ void FileSource::load(ResourceType type, const std::string &url, std::function<v // load from the internet if (!loadFile(type, cleanURL, callback)) { - const std::shared_ptr<FileSource> source = shared_from_this(); + FileSource *source = this; platform::request_http(absoluteURL, [=](platform::Response *res) { source->saveFile(type, cleanURL, res); callback(res); |