update color at picking and cleanup code from some warnings

This commit is contained in:
2019-03-11 15:35:59 +01:00
parent 373e7ad0e9
commit fda399f7dd
16 changed files with 56 additions and 63 deletions

View File

@@ -128,7 +128,7 @@ void NodeDialogCloud::load_thumbs_thread()
break;
res.clear();
char* url_escaped = curl_easy_escape(curl, n.c_str(), n.size());
char* url_escaped = curl_easy_escape(curl, n.c_str(), (int)n.size());
std::string url = std::string("https://panopainter.com/cloud/cloud-info.php?file=") + url_escaped;
delete url_escaped;
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());