Skip to content

Commit

Permalink
Half journey to fully functional C++-targeted refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
nseam committed Jul 22, 2021
1 parent 8619ee7 commit 048708e
Show file tree
Hide file tree
Showing 35 changed files with 1,407 additions and 848 deletions.
4 changes: 2 additions & 2 deletions Action.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ class Action {
}
}
bool CheckCondition(ENUM_ACTION_CONDITION _cond) {
DataParamEntry _args[] = {};
ARRAY(DataParamEntry, _args);
return Action::CheckCondition(_cond, _args);
}

Expand Down Expand Up @@ -365,7 +365,7 @@ class Action {
return _result;
}
bool ExecuteAction(ENUM_ACTION_ACTION _action) {
DataParamEntry _args[] = {};
ARRAY(DataParamEntry, _args);
return Action::ExecuteAction(_action, _args);
}

Expand Down
2 changes: 1 addition & 1 deletion Action.struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ struct ActionEntry {
last_success = 0;
tries = 1;
}
void SetArgs(MqlParam REF(_args)[]) {
void SetArgs(ARRAY_REF(MqlParam, _args)) {
// @todo: for().
}
void SetObject(void *_obj) {
Expand Down
Loading

0 comments on commit 048708e

Please sign in to comment.