mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-15 14:19:59 +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 (m_data.m_type == ElementData::Terminale)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (auto elmt_type_list = QETXML::subChild(e, QStringLiteral("properties"), QStringLiteral("element_type")) ;
|
auto elmt_type_list = QETXML::subChild(e, QStringLiteral("properties"), QStringLiteral("element_type"));
|
||||||
elmt_type_list.size())
|
if (elmt_type_list.size())
|
||||||
{
|
{
|
||||||
auto elmt_type = elmt_type_list.first();
|
auto elmt_type = elmt_type_list.first();
|
||||||
m_data.setTerminalType(
|
m_data.setTerminalType(
|
||||||
|
|||||||
Reference in New Issue
Block a user