From 2453f4ec147bdfa19c65fef6ad40d7693173676b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 29 Nov 2019 08:41:20 -0800 Subject: Avoid a shadow declaration warning --- alc/hrtf.cpp | 6 +++--- 1 file 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 __{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()}; -- cgit v1.2.3