Remove shadowing of identical base m_parser member

This commit is contained in:
Marek Roszko 2021-01-31 12:55:29 -05:00
parent dfc6070178
commit 21fe8542df
3 changed files with 2 additions and 5 deletions

View File

@ -39,8 +39,7 @@
CLIPBOARD_IO::CLIPBOARD_IO(): CLIPBOARD_IO::CLIPBOARD_IO():
PCB_IO( CTL_FOR_CLIPBOARD ), PCB_IO( CTL_FOR_CLIPBOARD ),
m_formatter(), m_formatter()
m_parser( new PCB_PARSER() )
{ {
m_out = &m_formatter; m_out = &m_formatter;
} }
@ -48,7 +47,6 @@ CLIPBOARD_IO::CLIPBOARD_IO():
CLIPBOARD_IO::~CLIPBOARD_IO() CLIPBOARD_IO::~CLIPBOARD_IO()
{ {
delete m_parser;
} }

View File

@ -65,7 +65,6 @@ public:
private: private:
STRING_FORMATTER m_formatter; STRING_FORMATTER m_formatter;
PCB_PARSER* m_parser;
}; };

View File

@ -185,7 +185,7 @@ public:
PCB_IO( int aControlFlags = CTL_FOR_BOARD ); PCB_IO( int aControlFlags = CTL_FOR_BOARD );
~PCB_IO(); virtual ~PCB_IO();
/** /**
* Output \a aItem to \a aFormatter in s-expression format. * Output \a aItem to \a aFormatter in s-expression format.