mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 07:57:58 -05:00
Add missing includes and use const where applicable
This commit is contained in:
@ -93,8 +93,9 @@ VirtualDir XCI::GetLogoPartition() const {
|
||||
}
|
||||
|
||||
std::shared_ptr<NCA> XCI::GetNCAByType(NCAContentType type) const {
|
||||
auto iter = std::find_if(ncas.begin(), ncas.end(),
|
||||
[type](std::shared_ptr<NCA> nca) { return nca->GetType() == type; });
|
||||
const auto iter =
|
||||
std::find_if(ncas.begin(), ncas.end(),
|
||||
[type](const std::shared_ptr<NCA>& nca) { return nca->GetType() == type; });
|
||||
return iter == ncas.end() ? nullptr : *iter;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user