Skip to content

Commit

Permalink
Add missing braces for clarity and clang
Browse files Browse the repository at this point in the history
  • Loading branch information
softins committed Mar 28, 2024
1 parent 2f769f5 commit 8c9eb5c
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@ void CServerSettings::ReadSettingsFromXML ( const QDomDocument& IniXMLDocument,
directoryType = bValue ? AT_DEFAULT : AT_CUSTOM;
}
else
{
//### TODO: END ###//

// if "directorytype" itself is set, use it (note "AT_NONE", "AT_DEFAULT" and "AT_CUSTOM" are min/max directory type here)
Expand All @@ -892,15 +893,19 @@ void CServerSettings::ReadSettingsFromXML ( const QDomDocument& IniXMLDocument,
}
//### TODO: END ###//

else if ( GetNumericIniSet ( IniXMLDocument,
"server",
"directorytype",
static_cast<int> ( AT_NONE ),
static_cast<int> ( AT_CUSTOM ),
iValue ) )
else
{
directoryType = static_cast<EDirectoryType> ( iValue );
if ( GetNumericIniSet ( IniXMLDocument,
"server",
"directorytype",
static_cast<int> ( AT_NONE ),
static_cast<int> ( AT_CUSTOM ),
iValue ) )
{
directoryType = static_cast<EDirectoryType> ( iValue );
}
}
}

//### TODO: BEGIN ###//
// compatibility to old version < 3.9.0
Expand Down

0 comments on commit 8c9eb5c

Please sign in to comment.