summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dropbox/src/api')
-rw-r--r--plugins/Dropbox/src/api/operations.h6
-rw-r--r--plugins/Dropbox/src/api/upload.h1
2 files changed, 2 insertions, 5 deletions
diff --git a/plugins/Dropbox/src/api/operations.h b/plugins/Dropbox/src/api/operations.h
index 1ff7d50230..56578515b3 100644
--- a/plugins/Dropbox/src/api/operations.h
+++ b/plugins/Dropbox/src/api/operations.h
@@ -26,8 +26,7 @@ public:
CMStringA data(CMStringDataFormat::FORMAT, "root=auto&path=%s", path);
data.Replace('\\', '/');
- pData = data.GetBuffer();
- dataLength = data.GetLength();
+ SetData(data.GetBuffer(), data.GetLength());
}
};
@@ -42,8 +41,7 @@ public:
CMStringA data(CMStringDataFormat::FORMAT, "root=auto&path=%s", path);
data.Replace('\\', '/');
- pData = data.GetBuffer();
- dataLength = data.GetLength();
+ SetData(data.GetBuffer(), data.GetLength());
}
};
diff --git a/plugins/Dropbox/src/api/upload.h b/plugins/Dropbox/src/api/upload.h
index 323bf907a5..5c2e41c792 100644
--- a/plugins/Dropbox/src/api/upload.h
+++ b/plugins/Dropbox/src/api/upload.h
@@ -39,7 +39,6 @@ public:
{
AddBearerAuthHeader(token);
AddHeader("Content-Type", "application/x-www-form-urlencoded");
-
AddUrlParameter("upload_id=%s", uploadId);
}
};