diff options
author | Chris Robinson <[email protected]> | 2023-12-21 21:26:36 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-12-21 21:26:36 -0800 |
commit | 863c48a3e78e8a2f1e9217eaf6cda02cbe44e366 (patch) | |
tree | f08e2a3a5e63a142824c526d8b3caaa8301d4f5f /alc/device.cpp | |
parent | ec2ffbfa6ddda5cb6fc37074e7f9e37f8315da39 (diff) |
Use string_views for querying config parameters
Diffstat (limited to 'alc/device.cpp')
-rw-r--r-- | alc/device.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/device.cpp b/alc/device.cpp index 5a34ad64..f13e6071 100644 --- a/alc/device.cpp +++ b/alc/device.cpp @@ -55,8 +55,8 @@ ALCdevice::~ALCdevice() void ALCdevice::enumerateHrtfs() { - mHrtfList = EnumerateHrtf(configValue<std::string>(nullptr, "hrtf-paths")); - if(auto defhrtfopt = configValue<std::string>(nullptr, "default-hrtf")) + mHrtfList = EnumerateHrtf(configValue<std::string>({}, "hrtf-paths")); + if(auto defhrtfopt = configValue<std::string>({}, "default-hrtf")) { auto iter = std::find(mHrtfList.begin(), mHrtfList.end(), *defhrtfopt); if(iter == mHrtfList.end()) |