diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-06-07 20:11:48 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-06-07 20:11:48 +0000 |
commit | 284caa432d31130a2714ce6acb49826d55b8789d (patch) | |
tree | 065c08408d210b915c49ebaa42da6afb9af0414b /plugins/Dropbox/src/dropbox_transfers.cpp | |
parent | 8e0c637454c5797a5a9ce02968480a1847676f29 (diff) |
Dropbox switched to NLHR_PTR
git-svn-id: http://svn.miranda-ng.org/main/trunk@14059 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_transfers.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_transfers.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Dropbox/src/dropbox_transfers.cpp b/plugins/Dropbox/src/dropbox_transfers.cpp index e7e5433ff1..865158186d 100644 --- a/plugins/Dropbox/src/dropbox_transfers.cpp +++ b/plugins/Dropbox/src/dropbox_transfers.cpp @@ -5,7 +5,7 @@ void CDropbox::SendFile(const char *path, const char *data, size_t size) ptrA token(db_get_sa(NULL, MODULE, "TokenSecret"));
ptrA encodedPath(mir_utf8encode(path));
UploadFileRequest request(token, encodedPath, data, size);
- NetlibPtr response(request.Send(hNetlibConnection));
+ NLHR_PTR response(request.Send(hNetlibConnection));
HandleHttpResponseError(response);
}
@@ -13,7 +13,7 @@ void CDropbox::SendFileChunkedFirst(const char *data, size_t size, char *uploadI {
ptrA token(db_get_sa(NULL, MODULE, "TokenSecret"));
UploadFileChunkRequest request(token, data, size);
- NetlibPtr response(request.Send(hNetlibConnection));
+ NLHR_PTR response(request.Send(hNetlibConnection));
HandleHttpResponseError(response);
@@ -32,7 +32,7 @@ void CDropbox::SendFileChunkedNext(const char *data, size_t size, const char *up {
ptrA token(db_get_sa(NULL, MODULE, "TokenSecret"));
UploadFileChunkRequest request(token, uploadId, offset, data, size);
- NetlibPtr response(request.Send(hNetlibConnection));
+ NLHR_PTR response(request.Send(hNetlibConnection));
HandleHttpResponseError(response);
@@ -48,7 +48,7 @@ void CDropbox::SendFileChunkedLast(const char *path, const char *uploadId) ptrA token(db_get_sa(NULL, MODULE, "TokenSecret"));
ptrA encodedPath(mir_utf8encode(path));
UploadFileChunkRequest request(token, uploadId, (char*)encodedPath);
- NetlibPtr response(request.Send(hNetlibConnection));
+ NLHR_PTR response(request.Send(hNetlibConnection));
HandleHttpResponseError(response);
}
@@ -57,7 +57,7 @@ void CDropbox::CreateFolder(const char *path) ptrA token(db_get_sa(NULL, MODULE, "TokenSecret"));
ptrA encodedPath(mir_utf8encode(path));
CreateFolderRequest request(token, encodedPath);
- NetlibPtr response(request.Send(hNetlibConnection));
+ NLHR_PTR response(request.Send(hNetlibConnection));
// forder exists on server
if (response->resultCode == HTTP_STATUS_FORBIDDEN)
@@ -72,7 +72,7 @@ void CDropbox::CreateDownloadUrl(const char *path, char *url) ptrA encodedPath(mir_utf8encode(path));
bool useShortUrl = db_get_b(NULL, MODULE, "UseSortLinks", 1) > 0;
ShareRequest request(token, encodedPath, useShortUrl);
- NetlibPtr response(request.Send(hNetlibConnection));
+ NLHR_PTR response(request.Send(hNetlibConnection));
HandleHttpResponseError(response);
|