mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-07 14:12:33 +01:00
Remove the use of c++17 if initializer
This commit is contained in:
@@ -851,8 +851,8 @@ bool Element::fromXml(QDomElement &e,
|
||||
if (m_data.m_type == ElementData::Terminale)
|
||||
{
|
||||
|
||||
if (auto elmt_type_list = QETXML::subChild(e, QStringLiteral("properties"), QStringLiteral("element_type")) ;
|
||||
elmt_type_list.size())
|
||||
auto elmt_type_list = QETXML::subChild(e, QStringLiteral("properties"), QStringLiteral("element_type"));
|
||||
if (elmt_type_list.size())
|
||||
{
|
||||
auto elmt_type = elmt_type_list.first();
|
||||
m_data.setTerminalType(
|
||||
|
||||
Reference in New Issue
Block a user