SpecMP1: Remove usage of const_cast

The preceding commit marked this mutex as mutable, so we can remove the
const_cast usage here.
This commit is contained in:
Lioncash 2020-04-09 20:28:46 -04:00
parent cf054f35a3
commit e22ecf644d
1 changed files with 1 additions and 1 deletions

View File

@ -626,7 +626,7 @@ struct SpecMP1 : SpecBase {
pathPrefix += pakName;
pathPrefix += '/';
std::unique_lock<std::mutex> lk(const_cast<SpecMP1&>(*this).m_backgroundIndexMutex);
std::unique_lock lk(m_backgroundIndexMutex);
for (const auto& tag : m_tagToPath)
if (!tag.second.getRelativePathUTF8().compare(0, pathPrefix.size(), pathPrefix))
out.push_back(tag.first);