Commit cb758f17 by Paweł Wegner

Added missing override.

parent d0c9810b
......@@ -160,7 +160,7 @@ class TransferListener : public mega::MegaTransferListener, public Listener {
Listener::cancel();
}
void onTransferStart(MegaApi* mega, MegaTransfer* transfer) {
void onTransferStart(MegaApi* mega, MegaTransfer* transfer) override {
std::lock_guard<std::mutex> lock(mutex_);
if (status_ == CANCELLED) {
mega->cancelTransfer(transfer);
......
......@@ -41,7 +41,8 @@ class PCloud : public CloudProvider {
void authorizeRequest(IHttpRequest& r) const override;
DownloadFileRequest::Pointer downloadFileAsync(
IItem::Pointer i, IDownloadFileCallback::Pointer cb, Range range);
IItem::Pointer i, IDownloadFileCallback::Pointer cb,
Range range) override;
IHttpRequest::Pointer getItemUrlRequest(
const IItem&, std::ostream& input_stream) const override;
......
......@@ -75,7 +75,7 @@ class YandexDisk : public CloudProvider {
std::istream&) const override;
IItem::Pointer createDirectoryResponse(const IItem& parent,
const std::string& name,
std::istream& response) const;
std::istream& response) const override;
IItem::Pointer toItem(const Json::Value&) const;
void authorizeRequest(IHttpRequest&) const override;
......
......@@ -142,20 +142,19 @@ class CloudProviderWrapper : public ICloudProvider {
DownloadFileRequest::Pointer downloadFileAsync(
IItem::Pointer item, const std::string& filename,
DownloadFileCallback callback) {
DownloadFileCallback callback) override {
return p_->downloadFileAsync(item, filename, callback);
}
DownloadFileRequest::Pointer getThumbnailAsync(
IItem::Pointer item, const std::string& filename,
GetThumbnailCallback callback) {
GetThumbnailCallback callback) override {
return p_->getThumbnailAsync(item, filename, callback);
}
UploadFileRequest::Pointer uploadFileAsync(IItem::Pointer parent,
const std::string& path,
const std::string& filename,
UploadFileCallback callback) {
UploadFileRequest::Pointer uploadFileAsync(
IItem::Pointer parent, const std::string& path,
const std::string& filename, UploadFileCallback callback) override {
return p_->uploadFileAsync(parent, path, filename, callback);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment