simplify code

This commit is contained in:
narspt 2020-02-26 12:46:00 +00:00 committed by GitHub
parent c3eaac41ce
commit 05897e3878
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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, ' ');