Fixed build for windows

This commit is contained in:
WolverinDEV 2019-10-26 01:17:36 +01:00
parent 3280a9d398
commit b6dade6fc8
2 changed files with 2 additions and 1 deletions

View File

@ -688,7 +688,7 @@ JSTransfer::JSTransfer(std::shared_ptr<tc::ft::Transfer> transfer) : _transfer(m
this->_transfer->callback_failed = [&](std::string error) { this->call_failed(std::forward<string>(error)); };
this->_transfer->callback_finished = [&](bool f) { this->call_finished(std::forward<bool>(f)); };
this->_transfer->callback_start = [&] { this->call_start(); };
this->_transfer->callback_process = [&](uint64_t a, uint64_t b) { this->call_progress.call_cpy(a, b); };
this->_transfer->callback_process = [&](uint64_t a, uint64_t b) { this->call_progress.call_cpy(a, b, true); };
}
JSTransfer::~JSTransfer() {

View File

@ -1,6 +1,7 @@
#pragma once
#include <fstream>
#include <optional>
#include "FileTransferManager.h"
namespace tc {