From 0296f810c5b66ddc745ceed0cf8ddce1c0919dd5 Mon Sep 17 00:00:00 2001 From: Nanako <469449812@qq.com> Date: Mon, 20 May 2024 12:09:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0const?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/misc/singleton/singleton_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/misc/singleton/singleton_manager.cpp b/core/misc/singleton/singleton_manager.cpp index 2441514..3dec94a 100644 --- a/core/misc/singleton/singleton_manager.cpp +++ b/core/misc/singleton/singleton_manager.cpp @@ -50,14 +50,14 @@ void singleton_manager::release() const { { singleton_release_guard release_guard(true); for (int32_t j = singletons_.size() - 1; j >= 0; --j) { - auto s = singletons_[j]; + const auto s = singletons_[j]; release_guard.release_singleton(s); } } { singleton_release_guard release_guard(false); for (int32_t j = singletons_.size() - 1; j >= 0; --j) { - auto s = singletons_[j]; + const auto s = singletons_[j]; release_guard.release_singleton(s); } }