From 062e911c6d570a794431023f9f0cb0b02cd85667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Tue, 26 Aug 2014 16:55:17 +0200 Subject: [PATCH] remove shared_from_this() usage --- src/util/filesource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/filesource.cpp b/src/util/filesource.cpp index ec46247b6..339b5b1e1 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 source = shared_from_this(); + FileSource *source = this; platform::request_http(absoluteURL, [=](platform::Response *res) { source->saveFile(type, cleanURL, res); callback(res);