From: Elena Mamontova Date: Mon, 29 Feb 2016 15:11:26 +0000 (+0200) Subject: Ticket 26. The const MODULE_SETTINGS & ms parameter added, X-Git-Tag: 2.409~174^2~1^2~30 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/b815c0550e75bf84b8805047403ea848a7074475 Ticket 26. The const MODULE_SETTINGS & ms parameter added, MODULE_SETTINGS newSettings object removed, the newSettings parameter changed to ms when newIaSettings.ParseSettings() method call in the Reload() method. --- diff --git a/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp b/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp index 1d126ae5..4456c372 100644 --- a/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp +++ b/projects/stargazer/plugins/authorization/inetaccess/inetaccess.cpp @@ -526,11 +526,10 @@ if (ret) return ret; } //----------------------------------------------------------------------------- -int AUTH_IA::Reload() +int AUTH_IA::Reload(const MODULE_SETTINGS & ms) { AUTH_IA_SETTINGS newIaSettings; -MODULE_SETTINGS newSettings = settings; -if (newIaSettings.ParseSettings(newSettings)) +if (newIaSettings.ParseSettings(ms)) { STG_LOGGER & WriteServLog = GetStgLogger(); printfd(__FILE__, "AUTH_IA::Reload() - Failed to reload InetAccess.\n");