summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_utils.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-11 17:13:29 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-11 17:13:29 +0000
commit9418930c2d211feca1ddeaafa160c3d8ca9a581a (patch)
tree827695e66cc8403f295c56f68fd39c07b38f9543 /plugins/Dropbox/src/dropbox_utils.cpp
parente8ab90ab839ce55a399280f1920e1afd0fb28424 (diff)
- protocol icon is used in all menus & buttons;
- code formatting git-svn-id: http://svn.miranda-ng.org/main/trunk@13551 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_utils.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox_utils.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/Dropbox/src/dropbox_utils.cpp b/plugins/Dropbox/src/dropbox_utils.cpp
index ba7fec2ee4..401ba75693 100644
--- a/plugins/Dropbox/src/dropbox_utils.cpp
+++ b/plugins/Dropbox/src/dropbox_utils.cpp
@@ -2,8 +2,7 @@
wchar_t *CDropbox::HttpStatusToText(HTTP_STATUS status)
{
- switch (status)
- {
+ switch (status) {
case HTTP_STATUS_OK:
return L"OK";
case HTTP_STATUS_BAD_REQUEST:
@@ -29,17 +28,15 @@ wchar_t *CDropbox::HttpStatusToText(HTTP_STATUS status)
int CDropbox::HandleHttpResponseError(HANDLE hNetlibUser, NETLIBHTTPREQUEST *response)
{
- if (!response)
- {
+ if (!response) {
Netlib_Logf(hNetlibUser, "%s: %s", MODULE, "Server does not respond");
return ACKRESULT_FAILED;
}
- if (response->resultCode != HTTP_STATUS_OK)
- {
+ if (response->resultCode != HTTP_STATUS_OK) {
Netlib_Logf(hNetlibUser, "%s: %s", MODULE, HttpStatusToText((HTTP_STATUS)response->resultCode));
return response->resultCode;
}
return 0;
-} \ No newline at end of file
+}