From 9af64d3895ea3ca444ecfc5c8ffb2509d56e64ed Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 30 Sep 2019 11:03:44 -0400 Subject: [PATCH] CAudioSys: Convert file-scope std::string into a constexpr string_view. Eliminates a static constructor that needs to run at program start. --- Runtime/Audio/CAudioSys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Audio/CAudioSys.cpp b/Runtime/Audio/CAudioSys.cpp index ce65c356d..5cf9a2574 100644 --- a/Runtime/Audio/CAudioSys.cpp +++ b/Runtime/Audio/CAudioSys.cpp @@ -6,7 +6,7 @@ namespace urde { namespace { std::unordered_map> mpGroupSetDB; std::unordered_map mpGroupSetResNameDB; -const std::string mpDefaultInvalidString = "NULL"; +constexpr std::string_view mpDefaultInvalidString = "NULL"; float s_MasterVol = 1.f; float s_SfxVol = 1.f;