diff options
author | George Hazan <ghazan@miranda.im> | 2017-04-10 11:15:24 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-04-10 11:15:24 +0300 |
commit | 8355eb65b11a9d581b57ad061449838df0353bf1 (patch) | |
tree | da79be5e0e1c444658a0926f6d41ed20759d30d8 /plugins/Dropbox/src | |
parent | 6481053a2d97d73902b4ba86b7a06812cff48ae1 (diff) |
compilation fix
Diffstat (limited to 'plugins/Dropbox/src')
-rw-r--r-- | plugins/Dropbox/src/dropbox_transfers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Dropbox/src/dropbox_transfers.cpp b/plugins/Dropbox/src/dropbox_transfers.cpp index 7f7bf2b1e7..6278f2e5fb 100644 --- a/plugins/Dropbox/src/dropbox_transfers.cpp +++ b/plugins/Dropbox/src/dropbox_transfers.cpp @@ -84,7 +84,7 @@ void CDropbox::CreateDownloadUrl(const char *path, char *url) JSONNode error = root.at("error");
if (error.isnull()) {
- JSONNode link = root.at("link");
+ JSONNode link = root.at("url");
mir_strcpy(url, link.as_string().c_str());
return;
}
@@ -99,7 +99,7 @@ void CDropbox::CreateDownloadUrl(const char *path, char *url) root = HandleJsonResponse(response);
JSONNode links = root.at("links").as_array();
- JSONNode link = links[0u].at("url");
+ const JSONNode &link = (*links.begin()).at("url");
mir_strcpy(url, link.as_string().c_str());
}
|