diff options
| author | 2018-10-13 08:39:02 -0400 | |
|---|---|---|
| committer | 2018-10-13 08:39:05 -0400 | |
| commit | d257a3b56cac582fe296994b98f050e7b8f39056 (patch) | |
| tree | cd1572ca5c05ff61ec51bbcb4bdaed1e41f54abf /src | |
| parent | partition_data_manager: Amend constructor initializer list order (diff) | |
| download | yuzu-d257a3b56cac582fe296994b98f050e7b8f39056.tar.gz yuzu-d257a3b56cac582fe296994b98f050e7b8f39056.tar.xz yuzu-d257a3b56cac582fe296994b98f050e7b8f39056.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/crypto/partition_data_manager.cpp | 2 | ||||
| -rw-r--r-- | src/core/crypto/partition_data_manager.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/crypto/partition_data_manager.cpp b/src/core/crypto/partition_data_manager.cpp index 7c3d9661d..ff46aad7c 100644 --- a/src/core/crypto/partition_data_manager.cpp +++ b/src/core/crypto/partition_data_manager.cpp | |||
| @@ -301,7 +301,7 @@ FileSys::VirtualFile FindFileInDirWithNames(const FileSys::VirtualDir& dir, | |||
| 301 | return nullptr; | 301 | return nullptr; |
| 302 | } | 302 | } |
| 303 | 303 | ||
| 304 | PartitionDataManager::PartitionDataManager(FileSys::VirtualDir sysdata_dir) | 304 | PartitionDataManager::PartitionDataManager(const FileSys::VirtualDir& sysdata_dir) |
| 305 | : boot0(FindFileInDirWithNames(sysdata_dir, "BOOT0")), | 305 | : boot0(FindFileInDirWithNames(sysdata_dir, "BOOT0")), |
| 306 | fuses(FindFileInDirWithNames(sysdata_dir, "fuse")), | 306 | fuses(FindFileInDirWithNames(sysdata_dir, "fuse")), |
| 307 | kfuses(FindFileInDirWithNames(sysdata_dir, "kfuse")), | 307 | kfuses(FindFileInDirWithNames(sysdata_dir, "kfuse")), |
diff --git a/src/core/crypto/partition_data_manager.h b/src/core/crypto/partition_data_manager.h index 0822a949c..c5a492a92 100644 --- a/src/core/crypto/partition_data_manager.h +++ b/src/core/crypto/partition_data_manager.h | |||
| @@ -23,7 +23,7 @@ class PartitionDataManager { | |||
| 23 | public: | 23 | public: |
| 24 | static const u8 MAX_KEYBLOB_SOURCE_HASH; | 24 | static const u8 MAX_KEYBLOB_SOURCE_HASH; |
| 25 | 25 | ||
| 26 | explicit PartitionDataManager(FileSys::VirtualDir sysdata_dir); | 26 | explicit PartitionDataManager(const FileSys::VirtualDir& sysdata_dir); |
| 27 | ~PartitionDataManager(); | 27 | ~PartitionDataManager(); |
| 28 | 28 | ||
| 29 | // BOOT0 | 29 | // BOOT0 |