# HG changeset patch # User Alain Mazy # Date 1783350815 -7200 # Node ID 8e440add1d47e177a0287cdcfac6ea01116585b9 # Parent a890a3f0d2ac74746735e5f9ced800aa7af4e6c8 configuration single source of truth: cleanup diff -r a890a3f0d2ac -r 8e440add1d47 OrthancServer/Sources/LuaScripting.cpp --- a/OrthancServer/Sources/LuaScripting.cpp Mon Jul 06 17:09:54 2026 +0200 +++ b/OrthancServer/Sources/LuaScripting.cpp Mon Jul 06 17:13:35 2026 +0200 @@ -1311,7 +1311,7 @@ std::list luaScripts; configLock.GetConfiguration().GetListOfStringsParameter(luaScripts, "LuaScripts"); - heartBeatPeriod_ = configLock.GetConfiguration().GetIntegerParameter("LuaHeartBeatPeriod", 0); + heartBeatPeriod_ = configLock.GetConfiguration().GetUnsignedIntegerParameter("LuaHeartBeatPeriod"); LuaScripting::Lock lock(*this); diff -r a890a3f0d2ac -r 8e440add1d47 OrthancServer/Sources/OrthancConfiguration.cpp --- a/OrthancServer/Sources/OrthancConfiguration.cpp Mon Jul 06 17:09:54 2026 +0200 +++ b/OrthancServer/Sources/OrthancConfiguration.cpp Mon Jul 06 17:13:35 2026 +0200 @@ -550,20 +550,6 @@ } - int OrthancConfiguration::GetIntegerParameter(const std::string& parameter, - int defaultValue) const - { - int v; - if (LookupIntegerParameter(v, parameter)) - { - return v; - } - else - { - return defaultValue; - } - } - bool OrthancConfiguration::LookupUnsignedIntegerParameter(unsigned int& target, const std::string& parameter) const diff -r a890a3f0d2ac -r 8e440add1d47 OrthancServer/Sources/OrthancConfiguration.h --- a/OrthancServer/Sources/OrthancConfiguration.h Mon Jul 06 17:09:54 2026 +0200 +++ b/OrthancServer/Sources/OrthancConfiguration.h Mon Jul 06 17:13:35 2026 +0200 @@ -204,9 +204,6 @@ bool LookupIntegerParameter(int& target, const std::string& parameter) const; - int GetIntegerParameter(const std::string& parameter, - int defaultValue) const; - bool LookupUnsignedIntegerParameter(unsigned int& target, const std::string& parameter) const;