Skip to content

Commit

Permalink
Fix #28: improve include order and avoid single file (RespArray.mqh) …
Browse files Browse the repository at this point in the history
…build failure
  • Loading branch information
dingmaotu committed Mar 20, 2018
1 parent e8c5b4a commit e7608fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Format/Resp.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
//| with "\r\n" (CRLF). |
//+------------------------------------------------------------------+
#include "RespValue.mqh"
#include "RespBytes.mqh"
#include "RespArray.mqh"
#include "RespInteger.mqh"
#include "RespString.mqh"
#include "RespBytes.mqh"
#include "RespMsgParser.mqh"
#include "RespStreamParser.mqh"
//+------------------------------------------------------------------+
2 changes: 2 additions & 0 deletions Format/RespArray.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
//+------------------------------------------------------------------+
#property strict
#include "RespValue.mqh"
#include "RespBytes.mqh" // for Nil reference
//+------------------------------------------------------------------+
//| RespArray |
//+------------------------------------------------------------------+
Expand Down Expand Up @@ -71,6 +72,7 @@ protected:
int size=ArraySize(m_array);
for(int i=0; i<size; i++)
{
// check for Nil singleton
if(m_array[i]!=Nil) SafeDelete(m_array[i]);
}
}
Expand Down

0 comments on commit e7608fb

Please sign in to comment.