DSPAssembler: In-class initialize members where applicable

Avoids repeating ourself in the initializer list and makes the class
have a predictable initial state.
This commit is contained in:
Lioncash
2018-06-18 15:35:56 -04:00
parent 091efcc41d
commit 1389bf35bd
2 changed files with 10 additions and 12 deletions

View File

@ -51,9 +51,7 @@ static const char* err_string[] = {"",
"Number out of range",
"Program counter out of range"};
DSPAssembler::DSPAssembler(const AssemblerSettings& settings)
: m_cur_addr(0), m_cur_pass(0), m_current_param(0), settings_(settings)
DSPAssembler::DSPAssembler(const AssemblerSettings& settings) : settings_(settings)
{
}