From 00bf83a9e04f82e874f2c3a988d3d053ca80dc1b Mon Sep 17 00:00:00 2001 From: tyanmahou Date: Thu, 4 Jan 2024 21:57:14 +0900 Subject: [PATCH] update constexpr --- Re-Abyss/Re-Abyss.vcxproj | 2 -- Re-Abyss/Re-Abyss.vcxproj.filters | 6 ------ Re-Abyss/app/utils/FPS/FrameRateController.hpp | 4 ++-- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Re-Abyss/Re-Abyss.vcxproj b/Re-Abyss/Re-Abyss.vcxproj index 4517a10d..ba9dd112 100644 --- a/Re-Abyss/Re-Abyss.vcxproj +++ b/Re-Abyss/Re-Abyss.vcxproj @@ -906,7 +906,6 @@ - @@ -2051,7 +2050,6 @@ - diff --git a/Re-Abyss/Re-Abyss.vcxproj.filters b/Re-Abyss/Re-Abyss.vcxproj.filters index 18b5830b..ee65cf4e 100644 --- a/Re-Abyss/Re-Abyss.vcxproj.filters +++ b/Re-Abyss/Re-Abyss.vcxproj.filters @@ -2013,9 +2013,6 @@ Source Files - - Source Files - Source Files @@ -5429,9 +5426,6 @@ Header Files - - Header Files - Header Files diff --git a/Re-Abyss/app/utils/FPS/FrameRateController.hpp b/Re-Abyss/app/utils/FPS/FrameRateController.hpp index 5dab69d6..fe7bfd53 100644 --- a/Re-Abyss/app/utils/FPS/FrameRateController.hpp +++ b/Re-Abyss/app/utils/FPS/FrameRateController.hpp @@ -18,7 +18,7 @@ namespace abyss Instance()->set(value); } private: - static s3d::StringView UniqueName() + constexpr static s3d::StringView UniqueName() { return U"FrameRateController"; } @@ -30,7 +30,7 @@ namespace abyss private: s3d::Optional m_value; - Clock::duration m_sleepTime; + Clock::duration m_sleepTime{}; TimePoint m_sleepUntil; }; }