From 8ba982f6ccca9a8c54d9a89601829ee94c56a909 Mon Sep 17 00:00:00 2001 From: Claveau Joshua Date: Tue, 27 Oct 2020 21:05:29 +0100 Subject: [PATCH] improve code readability --- sources/ElementsCollection/elementslocation.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sources/ElementsCollection/elementslocation.cpp b/sources/ElementsCollection/elementslocation.cpp index 4d0bf598d..bf35bb2ef 100644 --- a/sources/ElementsCollection/elementslocation.cpp +++ b/sources/ElementsCollection/elementslocation.cpp @@ -675,12 +675,13 @@ pugi::xml_document ElementsLocation::pugiXml() const #endif if (!m_project) { - if (docu.load_file(m_file_system_path.toStdString().c_str())) - { #ifndef Q_OS_LINUX + if (docu.load_file(m_file_system_path.toStdString().c_str())) { docu.save(m_string_stream); -#endif } +#else + docu.load_file(m_file_system_path.toStdString().c_str()); +#endif } else {