summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-08-26 16:55:17 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-09-24 16:14:09 +0200
commit062e911c6d570a794431023f9f0cb0b02cd85667 (patch)
tree40206050e820fd17c2eb3092d7f6f2983dd9e54c
parentcc4799510b3dbe248bfed0ce99b9747e742ddbcf (diff)
downloadqtlocation-mapboxgl-062e911c6d570a794431023f9f0cb0b02cd85667.tar.gz
remove shared_from_this() usage
-rw-r--r--src/util/filesource.cpp2
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);