mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-20 16:20:52 +01:00
improve code readability
This commit is contained in:
@@ -675,12 +675,13 @@ pugi::xml_document ElementsLocation::pugiXml() const
|
|||||||
#endif
|
#endif
|
||||||
if (!m_project)
|
if (!m_project)
|
||||||
{
|
{
|
||||||
if (docu.load_file(m_file_system_path.toStdString().c_str()))
|
|
||||||
{
|
|
||||||
#ifndef Q_OS_LINUX
|
#ifndef Q_OS_LINUX
|
||||||
|
if (docu.load_file(m_file_system_path.toStdString().c_str())) {
|
||||||
docu.save(m_string_stream);
|
docu.save(m_string_stream);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
docu.load_file(m_file_system_path.toStdString().c_str());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user