summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-03-24 22:52:20 +0300
committeraunsane <aunsane@gmail.com>2018-03-24 22:52:20 +0300
commit91489ae2c1f1872cfba05b2395e3453d1ccfa1b8 (patch)
treeb71cd91d0a19468376f0d04809a2c14ff95254ed
parentb69dfc075ed0b9f8bcecb55a6e586bae74dedc88 (diff)
typo and warning fixes
-rw-r--r--plugins/CloudFile/src/Services/google_api.h2
-rw-r--r--plugins/CloudFile/src/Services/google_service.cpp2
-rw-r--r--protocols/Tox/src/tox_bootstrap.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/CloudFile/src/Services/google_api.h b/plugins/CloudFile/src/Services/google_api.h
index 2f5baa8eb3..793d0053c3 100644
--- a/plugins/CloudFile/src/Services/google_api.h
+++ b/plugins/CloudFile/src/Services/google_api.h
@@ -142,7 +142,7 @@ namespace GDriveAPI
JSONNode params(JSON_NODE);
params
<< JSONNode("name", path)
- << JSONNode("mimeType", "pplication/vnd.google-apps.folder");
+ << JSONNode("mimeType", "application/vnd.google-apps.folder");
json_string data = params.write();
SetData(data.c_str(), data.length());
diff --git a/plugins/CloudFile/src/Services/google_service.cpp b/plugins/CloudFile/src/Services/google_service.cpp
index bbdf3255d7..42c08b6cc8 100644
--- a/plugins/CloudFile/src/Services/google_service.cpp
+++ b/plugins/CloudFile/src/Services/google_service.cpp
@@ -260,7 +260,7 @@ UINT CGDriveService::Upload(FileTransferParam *ftp)
for (size_t i = 0; i < chunkCount; i++) {
ftp->CheckCurrentFile();
size_t size = ftp->ReadCurrentFile(chunk, chunkSize);
- auto fileId = UploadFileChunk(uploadUri, chunk, size, offset, fileSize);
+ fileId = UploadFileChunk(uploadUri, chunk, size, offset, fileSize);
offset += size;
ftp->Progress(size);
}
diff --git a/protocols/Tox/src/tox_bootstrap.cpp b/protocols/Tox/src/tox_bootstrap.cpp
index 7bdf45bbdc..645b85ad90 100644
--- a/protocols/Tox/src/tox_bootstrap.cpp
+++ b/protocols/Tox/src/tox_bootstrap.cpp
@@ -116,7 +116,7 @@ void CToxProto::UpdateNodes()
return;
}
- long lastUpdate = root.at("last_scan").as_int();
+ DWORD lastUpdate = root.at("last_scan").as_int();
if (lastUpdate <= getDword("NodesUpdate", 0))
return;