From: aebersol Date: Thu, 19 Jan 2023 19:39:38 +0000 (+0100) Subject: Fixed build issue with constructor and parameter order X-Git-Url: https://git.ebersold.fr/?a=commitdiff_plain;h=88c5b9e65b4fd47c79ad7078e9d70c0e0f622050;p=antcc.git Fixed build issue with constructor and parameter order --- diff --git a/src/location.h b/src/location.h index 9dc4ec6..a584a31 100644 --- a/src/location.h +++ b/src/location.h @@ -6,7 +6,8 @@ namespace antcc struct Location { Location(char *_filename,const unsigned long _line,const unsigned long _col) - : m_Filename(_filename),m_Line(_line),m_Column(_col) {}; + : m_Column(_col) ,m_Line(_line) , m_Filename(_filename) + {}; unsigned long m_Column; unsigned long m_Line; char * m_Filename; diff --git a/src/os/directory.h b/src/os/directory.h index fc82de2..2f8c650 100644 --- a/src/os/directory.h +++ b/src/os/directory.h @@ -88,10 +88,10 @@ class directory_iterator value_type getNext(); private: - // Current entry. - value_type m_Entry; // Missing DIR ... open / close handle_type m_Handle; + // Current entry. + value_type m_Entry; }; /** * diff --git a/src/xml/parser/ant_elements_parser.cpp b/src/xml/parser/ant_elements_parser.cpp index 6583562..d59a04a 100644 --- a/src/xml/parser/ant_elements_parser.cpp +++ b/src/xml/parser/ant_elements_parser.cpp @@ -370,7 +370,7 @@ cls :: cls(const cls &_c) : RootElement(_c.m_CurrentElement) \ ); \ } \ cls::cls(antcc::project *_project,antcc::antElement *_elt) \ - : m_Project(_project) ,RootElement(_elt) \ + : RootElement(_elt) , m_Project(_project) \ { \ ANTCC_PARSER_DEBUG("%s(%0x)::%s elt=%0x" \ ,#cls \ @@ -455,7 +455,7 @@ cls :: cls(const cls &_c) : ComplexElement(_c.m_CurrentElement) \ ); \ } \ cls::cls(antcc::project *_project,antcc::antElement *_elt) \ - : m_Project(_project) ,ComplexElement(_elt) \ + : ComplexElement(_elt) ,m_Project(_project) \ { \ ANTCC_PARSER_DEBUG("%s(%0x)::%s elt=%0x" \ ,#cls \ @@ -539,7 +539,7 @@ cls :: cls(const cls &_c) : SimpleElement() \ ); \ } \ cls::cls(antcc::project *_project,antcc::antElement *_elt) \ - : m_Project(_project) ,SimpleElement(_elt) \ + : SimpleElement(_elt), m_Project(_project) \ { \ ANTCC_PARSER_DEBUG("%s(%0x)::%s elt=%0x" \ ,#cls \ diff --git a/src/xml/parser/document.h b/src/xml/parser/document.h index 435e2d8..8058870 100644 --- a/src/xml/parser/document.h +++ b/src/xml/parser/document.h @@ -13,7 +13,7 @@ namespace antcc class DocumentBase { public: - DocumentBase(ParserBase &p,const char *root) : m_depth(0) , m_root_parser(p),m_name(root) {}; + DocumentBase(ParserBase &p,const char *root) : m_root_parser(p) ,m_depth(0) ,m_name(root) {}; virtual ~DocumentBase() {}; virtual void startElement(std::string &ns,std::string &name,std::string tp){};