mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 06:10:00 +00:00
ldr: Mark IsValidNROHash() as a const member function
This doesn't modify instance state, so it can be made const.
This commit is contained in:
parent
0032cf3818
commit
dae2449880
1 changed files with 4 additions and 5 deletions
|
@ -480,9 +480,8 @@ private:
|
||||||
std::map<VAddr, NROInfo> nro;
|
std::map<VAddr, NROInfo> nro;
|
||||||
std::map<VAddr, std::vector<SHA256Hash>> nrr;
|
std::map<VAddr, std::vector<SHA256Hash>> nrr;
|
||||||
|
|
||||||
bool IsValidNROHash(const SHA256Hash& hash) {
|
bool IsValidNROHash(const SHA256Hash& hash) const {
|
||||||
return std::any_of(
|
return std::any_of(nrr.begin(), nrr.end(), [&hash](const auto& p) {
|
||||||
nrr.begin(), nrr.end(), [&hash](const std::pair<VAddr, std::vector<SHA256Hash>>& p) {
|
|
||||||
return std::find(p.second.begin(), p.second.end(), hash) != p.second.end();
|
return std::find(p.second.begin(), p.second.end(), hash) != p.second.end();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue