mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-28 02:57:56 +00:00
Removed unused argument is_testing from function initExpert
This commit is contained in:
@@ -40,10 +40,9 @@ template <typename T> T Execute(std::function<T()> func, wchar_t* err, T default
|
||||
return result;
|
||||
}
|
||||
|
||||
_DLLAPI int _stdcall initExpert(int expertHandle, int port, int isTestMode, wchar_t* err)
|
||||
_DLLAPI int _stdcall initExpert(int expertHandle, int port, wchar_t* err)
|
||||
{
|
||||
return Execute<int>([&expertHandle, &port, &isTestMode]() {
|
||||
bool isTesting = (isTestMode != 0) ? true : false;
|
||||
return Execute<int>([&expertHandle, &port]() {
|
||||
auto mt_handler = std::make_unique<MT5Handler>(expertHandle);
|
||||
MtService::GetInstance().InitExpert(port, expertHandle, std::move(mt_handler));
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user