Mercurial > hg > orthanc
changeset 7005:8e440add1d47
configuration single source of truth: cleanup
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Mon, 06 Jul 2026 17:13:35 +0200 |
| parents | a890a3f0d2ac |
| children | 83fc150a2183 |
| files | OrthancServer/Sources/LuaScripting.cpp OrthancServer/Sources/OrthancConfiguration.cpp OrthancServer/Sources/OrthancConfiguration.h |
| diffstat | 3 files changed, 1 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- 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<std::string> luaScripts; configLock.GetConfiguration().GetListOfStringsParameter(luaScripts, "LuaScripts"); - heartBeatPeriod_ = configLock.GetConfiguration().GetIntegerParameter("LuaHeartBeatPeriod", 0); + heartBeatPeriod_ = configLock.GetConfiguration().GetUnsignedIntegerParameter("LuaHeartBeatPeriod"); LuaScripting::Lock lock(*this);
--- 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
--- 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;
