mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-01-03 23:19:59 +01:00
simplify code
This commit is contained in:
parent
c3eaac41ce
commit
05897e3878
|
|
@ -139,11 +139,7 @@ bool CYSFReflectors::load()
|
|||
refl->m_port = (unsigned int)::atoi(p5);
|
||||
refl->m_count = std::string(p6);
|
||||
refl->m_type = YT_YSF;
|
||||
|
||||
if (refl->m_name.compare(0, 3, "XLX") == 0)
|
||||
refl->m_wiresX = true;
|
||||
else
|
||||
refl->m_wiresX = false;
|
||||
refl->m_wiresX = (refl->m_name.compare(0, 3, "XLX") == 0);
|
||||
|
||||
refl->m_name.resize(16U, ' ');
|
||||
refl->m_desc.resize(14U, ' ');
|
||||
|
|
|
|||
Loading…
Reference in a new issue