From a8de918cc4d84c2b621f840886f953aacb55d215 Mon Sep 17 00:00:00 2001 From: Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> Date: Tue, 8 Apr 2025 16:37:13 +0200 Subject: [PATCH] auth: use static for getValue (#732) --- src/auth/Auth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/Auth.cpp b/src/auth/Auth.cpp index 6337f5e..e7f075d 100644 --- a/src/auth/Auth.cpp +++ b/src/auth/Auth.cpp @@ -100,7 +100,7 @@ static void displayFailTimeoutCallback(std::shared_ptr self, void* data) } void CAuth::enqueueFail(const std::string& failText, eAuthImplementations implType) { - const auto FAILTIMEOUT = g_pConfigManager->getValue("general:fail_timeout"); + static const auto FAILTIMEOUT = g_pConfigManager->getValue("general:fail_timeout"); m_sCurrentFail.failText = failText; m_sCurrentFail.failSource = implType;