Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
remove shared_from_this() usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaefer committed Aug 26, 2014
1 parent 151ec84 commit 8d30644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/filesource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8d30644

Please sign in to comment.