CAudioSys: Convert file-scope std::string into a constexpr string_view.

Eliminates a static constructor that needs to run at program start.
This commit is contained in:
Lioncash 2019-09-30 11:03:44 -04:00
parent dea89e7664
commit 9af64d3895
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ namespace urde {
namespace {
std::unordered_map<std::string, TLockedToken<CAudioGroupSet>> mpGroupSetDB;
std::unordered_map<CAssetId, std::string> mpGroupSetResNameDB;
const std::string mpDefaultInvalidString = "NULL";
constexpr std::string_view mpDefaultInvalidString = "NULL";
float s_MasterVol = 1.f;
float s_SfxVol = 1.f;