remove shared_from_this() usage

This commit is contained in:
Konstantin Käfer
2014-08-26 16:55:17 +02:00
parent cc4799510b
commit 062e911c6d

View File

@@ -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);