mirror of https://github.com/AxioDL/metaforce.git
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:
parent
cf054f35a3
commit
e22ecf644d
|
@ -626,7 +626,7 @@ struct SpecMP1 : SpecBase {
|
||||||
pathPrefix += pakName;
|
pathPrefix += pakName;
|
||||||
pathPrefix += '/';
|
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)
|
for (const auto& tag : m_tagToPath)
|
||||||
if (!tag.second.getRelativePathUTF8().compare(0, pathPrefix.size(), pathPrefix))
|
if (!tag.second.getRelativePathUTF8().compare(0, pathPrefix.size(), pathPrefix))
|
||||||
out.push_back(tag.first);
|
out.push_back(tag.first);
|
||||||
|
|
Loading…
Reference in New Issue