mirror of
https://github.com/yuzu-mirror/yuzu
synced 2024-11-28 09:00:17 +00:00
partition_data_manager: Take VirtualFile by const reference in constructor
Given the VirtualFile instance isn't stored into the class as a data member, or written to, this can just be turned into a const reference, as the constructor doesn't need to make a copy of it.
This commit is contained in:
parent
e96d69c328
commit
d257a3b56c
2 changed files with 2 additions and 2 deletions
|
@ -301,7 +301,7 @@ FileSys::VirtualFile FindFileInDirWithNames(const FileSys::VirtualDir& dir,
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
PartitionDataManager::PartitionDataManager(FileSys::VirtualDir sysdata_dir)
|
||||
PartitionDataManager::PartitionDataManager(const FileSys::VirtualDir& sysdata_dir)
|
||||
: boot0(FindFileInDirWithNames(sysdata_dir, "BOOT0")),
|
||||
fuses(FindFileInDirWithNames(sysdata_dir, "fuse")),
|
||||
kfuses(FindFileInDirWithNames(sysdata_dir, "kfuse")),
|
||||
|
|
|
@ -23,7 +23,7 @@ class PartitionDataManager {
|
|||
public:
|
||||
static const u8 MAX_KEYBLOB_SOURCE_HASH;
|
||||
|
||||
explicit PartitionDataManager(FileSys::VirtualDir sysdata_dir);
|
||||
explicit PartitionDataManager(const FileSys::VirtualDir& sysdata_dir);
|
||||
~PartitionDataManager();
|
||||
|
||||
// BOOT0
|
||||
|
|
Loading…
Reference in a new issue