aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-11-29 08:41:20 -0800
committerChris Robinson <[email protected]>2019-11-29 08:41:20 -0800
commit2453f4ec147bdfa19c65fef6ad40d7693173676b (patch)
tree1173a5bf15fa0e547f0a15bd69a5a6d605bfe912
parent7ff165b09562b6942160803b0ea713ff4c911354 (diff)
Avoid a shadow declaration warning
-rw-r--r--alc/hrtf.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp
index 1834ed95..9564df47 100644
--- a/alc/hrtf.cpp
+++ b/alc/hrtf.cpp
@@ -1265,9 +1265,9 @@ HrtfStore *GetLoadedHrtf(const std::string &name, const char *devname, const ALu
const std::string &fname = entry_iter->mFilename;
std::lock_guard<std::mutex> __{LoadedHrtfLock};
- auto handle = std::lower_bound(LoadedHrtfs.begin(), LoadedHrtfs.end(), fname,
- [](LoadedHrtf &hrtf, const std::string &fname) -> bool { return hrtf.mFilename < fname; }
- );
+ auto hrtf_lt_fname = [](LoadedHrtf &hrtf, const std::string &filename) -> bool
+ { return hrtf.mFilename < filename; };
+ auto handle = std::lower_bound(LoadedHrtfs.begin(), LoadedHrtfs.end(), fname, hrtf_lt_fname);
while(handle != LoadedHrtfs.end() && handle->mFilename == fname)
{
HrtfStore *hrtf{handle->mEntry.get()};