diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-01-22 07:02:14 -0800 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-02-04 10:49:06 +0100 |
commit | 92a7f73bbe10f817d5c2d607ba07fc69b859593b (patch) | |
tree | 6dfb4734d3b8731e8ec21cd036b192eceb31104b /src | |
parent | bf629c97db98cc835e324409edfd8729bb3583c2 (diff) | |
download | qtlocation-mapboxgl-92a7f73bbe10f817d5c2d607ba07fc69b859593b.tar.gz |
fixes for linux
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/storage/default_file_source.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mbgl/storage/default_file_source.cpp b/src/mbgl/storage/default_file_source.cpp index 05d87e474b..60633c789e 100644 --- a/src/mbgl/storage/default_file_source.cpp +++ b/src/mbgl/storage/default_file_source.cpp @@ -96,28 +96,28 @@ SharedRequestBase *DefaultFileSource::find(const Resource &resource) { } Request *DefaultFileSource::request(const Resource &resource, uv_loop_t *l, Callback callback) { - auto request = new Request(resource, l, std::move(callback)); + auto req = new Request(resource, l, std::move(callback)); // This function can be called from any thread. Make sure we're executing the actual call in the // file source loop by sending it over the queue. It will be processed in processAction(). - queue->send(AddRequestAction{ request }); - return request; + queue->send(AddRequestAction{ req }); + return req; } void DefaultFileSource::request(const Resource &resource, Callback callback) { - auto request = new Request(resource, nullptr, std::move(callback)); + auto req = new Request(resource, nullptr, std::move(callback)); // This function can be called from any thread. Make sure we're executing the actual call in the // file source loop by sending it over the queue. It will be processed in processAction(). - queue->send(AddRequestAction{ request }); + queue->send(AddRequestAction{ req }); } -void DefaultFileSource::cancel(Request *request) { - request->cancel(); +void DefaultFileSource::cancel(Request *req) { + req->cancel(); // This function can be called from any thread. Make sure we're executing the actual call in the // file source loop by sending it over the queue. It will be processed in processAction(). - queue->send(RemoveRequestAction{ request }); + queue->send(RemoveRequestAction{ req }); } void DefaultFileSource::process(AddRequestAction &action) { |