summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-10-23 02:46:15 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-10-23 02:46:15 -0700
commit10cb83579feb53e7524ec899c0bff19161877669 (patch)
treea8bbac3634560412f03cd2404348c06ee7b47bfc /common
parent40a933ddce390b7926c25bb00a95f34fd76453ae (diff)
downloadqtlocation-mapboxgl-10cb83579feb53e7524ec899c0bff19161877669.tar.gz
gcc fixes
Diffstat (limited to 'common')
-rw-r--r--common/glfw_view.cpp4
-rw-r--r--common/http_request_baton_curl.cpp10
2 files changed, 7 insertions, 7 deletions
diff --git a/common/glfw_view.cpp b/common/glfw_view.cpp
index 53cd068d09..92d1e19085 100644
--- a/common/glfw_view.cpp
+++ b/common/glfw_view.cpp
@@ -13,8 +13,8 @@ GLFWView::~GLFWView() {
glfwTerminate();
}
-void GLFWView::initialize(mbgl::Map *map) {
- View::initialize(map);
+void GLFWView::initialize(mbgl::Map *map_) {
+ View::initialize(map_);
if (!glfwInit()) {
fprintf(stderr, "Failed to initialize glfw\n");
diff --git a/common/http_request_baton_curl.cpp b/common/http_request_baton_curl.cpp
index b5226e20ec..0c3d2b43fc 100644
--- a/common/http_request_baton_curl.cpp
+++ b/common/http_request_baton_curl.cpp
@@ -154,11 +154,11 @@ void curl_perform(uv_poll_t *req, int, int events) {
while ((message = curl_multi_info_read(multi, &pending))) {
switch (message->msg) {
case CURLMSG_DONE: {
- CURLContext *context = nullptr;
- curl_easy_getinfo(message->easy_handle, CURLINFO_PRIVATE, (char *)&context);
+ CURLContext *ctx = nullptr;
+ curl_easy_getinfo(message->easy_handle, CURLINFO_PRIVATE, (char *)&ctx);
// Make a copy so that the Baton stays around even after we are calling finish_request
- util::ptr<HTTPRequestBaton> baton = context->baton;
+ util::ptr<HTTPRequestBaton> baton = ctx->baton;
// Add human-readable error code
if (message->data.result != CURLE_OK) {
@@ -242,8 +242,8 @@ int handle_socket(CURL *handle, curl_socket_t sockfd, int action, void *, void *
}
if (action == CURL_POLL_REMOVE && socketp) {
uv_poll_stop(context->poll_handle);
- uv_close((uv_handle_t *)context->poll_handle, [](uv_handle_t *handle) {
- delete (uv_poll_t *)handle;
+ uv_close((uv_handle_t *)context->poll_handle, [](uv_handle_t *poll_handle) {
+ delete (uv_poll_t *)poll_handle;
});
context->poll_handle = nullptr;
curl_multi_assign(multi, sockfd, NULL);