1
0
Fork 0

simplify code

ycs232-kbc
narspt 5 years ago committed by GitHub
parent c3eaac41ce
commit 05897e3878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -139,11 +139,7 @@ bool CYSFReflectors::load()
refl->m_port = (unsigned int)::atoi(p5); refl->m_port = (unsigned int)::atoi(p5);
refl->m_count = std::string(p6); refl->m_count = std::string(p6);
refl->m_type = YT_YSF; refl->m_type = YT_YSF;
refl->m_wiresX = (refl->m_name.compare(0, 3, "XLX") == 0);
if (refl->m_name.compare(0, 3, "XLX") == 0)
refl->m_wiresX = true;
else
refl->m_wiresX = false;
refl->m_name.resize(16U, ' '); refl->m_name.resize(16U, ' ');
refl->m_desc.resize(14U, ' '); refl->m_desc.resize(14U, ' ');

Loading…
Cancel
Save