mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-29 14:57:41 -05: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;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
PartitionDataManager::PartitionDataManager(FileSys::VirtualDir sysdata_dir)
|
PartitionDataManager::PartitionDataManager(const FileSys::VirtualDir& sysdata_dir)
|
||||||
: boot0(FindFileInDirWithNames(sysdata_dir, "BOOT0")),
|
: boot0(FindFileInDirWithNames(sysdata_dir, "BOOT0")),
|
||||||
fuses(FindFileInDirWithNames(sysdata_dir, "fuse")),
|
fuses(FindFileInDirWithNames(sysdata_dir, "fuse")),
|
||||||
kfuses(FindFileInDirWithNames(sysdata_dir, "kfuse")),
|
kfuses(FindFileInDirWithNames(sysdata_dir, "kfuse")),
|
||||||
|
|
|
@ -23,7 +23,7 @@ class PartitionDataManager {
|
||||||
public:
|
public:
|
||||||
static const u8 MAX_KEYBLOB_SOURCE_HASH;
|
static const u8 MAX_KEYBLOB_SOURCE_HASH;
|
||||||
|
|
||||||
explicit PartitionDataManager(FileSys::VirtualDir sysdata_dir);
|
explicit PartitionDataManager(const FileSys::VirtualDir& sysdata_dir);
|
||||||
~PartitionDataManager();
|
~PartitionDataManager();
|
||||||
|
|
||||||
// BOOT0
|
// BOOT0
|
||||||
|
|
Loading…
Reference in a new issue