diff options
| author | 2016-12-08 00:29:38 -0800 | |
|---|---|---|
| committer | 2016-12-08 00:29:38 -0800 | |
| commit | 63d3dd5262cae8ff0874dcc2cb773db3497dc70c (patch) | |
| tree | fe9ebfba08a098caa1d9dee2324a0bdd784685dd /src | |
| parent | Merge pull request #2283 from lioncash/svc (diff) | |
| parent | file_sys: Make a few single-argument constructors explicit (diff) | |
| download | yuzu-63d3dd5262cae8ff0874dcc2cb773db3497dc70c.tar.gz yuzu-63d3dd5262cae8ff0874dcc2cb773db3497dc70c.tar.xz yuzu-63d3dd5262cae8ff0874dcc2cb773db3497dc70c.zip | |
Merge pull request #2277 from lioncash/explicit
file_sys: Make a few single-argument constructors explicit
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/file_sys/archive_extsavedata.cpp | 2 | ||||
| -rw-r--r-- | src/core/file_sys/archive_ncch.h | 2 | ||||
| -rw-r--r-- | src/core/file_sys/archive_romfs.h | 2 | ||||
| -rw-r--r-- | src/core/file_sys/archive_sdmc.h | 4 | ||||
| -rw-r--r-- | src/core/file_sys/archive_sdmcwriteonly.h | 4 | ||||
| -rw-r--r-- | src/core/file_sys/archive_systemsavedata.h | 2 | ||||
| -rw-r--r-- | src/core/file_sys/path_parser.h | 2 | ||||
| -rw-r--r-- | src/core/file_sys/savedata_archive.h | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/src/core/file_sys/archive_extsavedata.cpp b/src/core/file_sys/archive_extsavedata.cpp index e1c4931ec..5b172df4a 100644 --- a/src/core/file_sys/archive_extsavedata.cpp +++ b/src/core/file_sys/archive_extsavedata.cpp | |||
| @@ -64,7 +64,7 @@ private: | |||
| 64 | */ | 64 | */ |
| 65 | class ExtSaveDataArchive : public SaveDataArchive { | 65 | class ExtSaveDataArchive : public SaveDataArchive { |
| 66 | public: | 66 | public: |
| 67 | ExtSaveDataArchive(const std::string& mount_point) : SaveDataArchive(mount_point) {} | 67 | explicit ExtSaveDataArchive(const std::string& mount_point) : SaveDataArchive(mount_point) {} |
| 68 | 68 | ||
| 69 | std::string GetName() const override { | 69 | std::string GetName() const override { |
| 70 | return "ExtSaveDataArchive: " + mount_point; | 70 | return "ExtSaveDataArchive: " + mount_point; |
diff --git a/src/core/file_sys/archive_ncch.h b/src/core/file_sys/archive_ncch.h index 66b8ce75d..753b91f96 100644 --- a/src/core/file_sys/archive_ncch.h +++ b/src/core/file_sys/archive_ncch.h | |||
| @@ -17,7 +17,7 @@ namespace FileSys { | |||
| 17 | /// File system interface to the NCCH archive | 17 | /// File system interface to the NCCH archive |
| 18 | class ArchiveFactory_NCCH final : public ArchiveFactory { | 18 | class ArchiveFactory_NCCH final : public ArchiveFactory { |
| 19 | public: | 19 | public: |
| 20 | ArchiveFactory_NCCH(const std::string& mount_point); | 20 | explicit ArchiveFactory_NCCH(const std::string& mount_point); |
| 21 | 21 | ||
| 22 | std::string GetName() const override { | 22 | std::string GetName() const override { |
| 23 | return "NCCH"; | 23 | return "NCCH"; |
diff --git a/src/core/file_sys/archive_romfs.h b/src/core/file_sys/archive_romfs.h index 8a8082a05..1eaf99b54 100644 --- a/src/core/file_sys/archive_romfs.h +++ b/src/core/file_sys/archive_romfs.h | |||
| @@ -20,7 +20,7 @@ namespace FileSys { | |||
| 20 | /// File system interface to the RomFS archive | 20 | /// File system interface to the RomFS archive |
| 21 | class ArchiveFactory_RomFS final : public ArchiveFactory { | 21 | class ArchiveFactory_RomFS final : public ArchiveFactory { |
| 22 | public: | 22 | public: |
| 23 | ArchiveFactory_RomFS(Loader::AppLoader& app_loader); | 23 | explicit ArchiveFactory_RomFS(Loader::AppLoader& app_loader); |
| 24 | 24 | ||
| 25 | std::string GetName() const override { | 25 | std::string GetName() const override { |
| 26 | return "RomFS"; | 26 | return "RomFS"; |
diff --git a/src/core/file_sys/archive_sdmc.h b/src/core/file_sys/archive_sdmc.h index 9d99b110c..f6c70bfcc 100644 --- a/src/core/file_sys/archive_sdmc.h +++ b/src/core/file_sys/archive_sdmc.h | |||
| @@ -17,7 +17,7 @@ namespace FileSys { | |||
| 17 | /// Archive backend for SDMC archive | 17 | /// Archive backend for SDMC archive |
| 18 | class SDMCArchive : public ArchiveBackend { | 18 | class SDMCArchive : public ArchiveBackend { |
| 19 | public: | 19 | public: |
| 20 | SDMCArchive(const std::string& mount_point_) : mount_point(mount_point_) {} | 20 | explicit SDMCArchive(const std::string& mount_point_) : mount_point(mount_point_) {} |
| 21 | 21 | ||
| 22 | std::string GetName() const override { | 22 | std::string GetName() const override { |
| 23 | return "SDMCArchive: " + mount_point; | 23 | return "SDMCArchive: " + mount_point; |
| @@ -43,7 +43,7 @@ protected: | |||
| 43 | /// File system interface to the SDMC archive | 43 | /// File system interface to the SDMC archive |
| 44 | class ArchiveFactory_SDMC final : public ArchiveFactory { | 44 | class ArchiveFactory_SDMC final : public ArchiveFactory { |
| 45 | public: | 45 | public: |
| 46 | ArchiveFactory_SDMC(const std::string& mount_point); | 46 | explicit ArchiveFactory_SDMC(const std::string& mount_point); |
| 47 | 47 | ||
| 48 | /** | 48 | /** |
| 49 | * Initialize the archive. | 49 | * Initialize the archive. |
diff --git a/src/core/file_sys/archive_sdmcwriteonly.h b/src/core/file_sys/archive_sdmcwriteonly.h index ed977485a..9cd38d96f 100644 --- a/src/core/file_sys/archive_sdmcwriteonly.h +++ b/src/core/file_sys/archive_sdmcwriteonly.h | |||
| @@ -19,7 +19,7 @@ namespace FileSys { | |||
| 19 | */ | 19 | */ |
| 20 | class SDMCWriteOnlyArchive : public SDMCArchive { | 20 | class SDMCWriteOnlyArchive : public SDMCArchive { |
| 21 | public: | 21 | public: |
| 22 | SDMCWriteOnlyArchive(const std::string& mount_point) : SDMCArchive(mount_point) {} | 22 | explicit SDMCWriteOnlyArchive(const std::string& mount_point) : SDMCArchive(mount_point) {} |
| 23 | 23 | ||
| 24 | std::string GetName() const override { | 24 | std::string GetName() const override { |
| 25 | return "SDMCWriteOnlyArchive: " + mount_point; | 25 | return "SDMCWriteOnlyArchive: " + mount_point; |
| @@ -34,7 +34,7 @@ public: | |||
| 34 | /// File system interface to the SDMC write-only archive | 34 | /// File system interface to the SDMC write-only archive |
| 35 | class ArchiveFactory_SDMCWriteOnly final : public ArchiveFactory { | 35 | class ArchiveFactory_SDMCWriteOnly final : public ArchiveFactory { |
| 36 | public: | 36 | public: |
| 37 | ArchiveFactory_SDMCWriteOnly(const std::string& mount_point); | 37 | explicit ArchiveFactory_SDMCWriteOnly(const std::string& mount_point); |
| 38 | 38 | ||
| 39 | /** | 39 | /** |
| 40 | * Initialize the archive. | 40 | * Initialize the archive. |
diff --git a/src/core/file_sys/archive_systemsavedata.h b/src/core/file_sys/archive_systemsavedata.h index a24b89f2b..52eb6c630 100644 --- a/src/core/file_sys/archive_systemsavedata.h +++ b/src/core/file_sys/archive_systemsavedata.h | |||
| @@ -18,7 +18,7 @@ namespace FileSys { | |||
| 18 | /// File system interface to the SystemSaveData archive | 18 | /// File system interface to the SystemSaveData archive |
| 19 | class ArchiveFactory_SystemSaveData final : public ArchiveFactory { | 19 | class ArchiveFactory_SystemSaveData final : public ArchiveFactory { |
| 20 | public: | 20 | public: |
| 21 | ArchiveFactory_SystemSaveData(const std::string& mount_point); | 21 | explicit ArchiveFactory_SystemSaveData(const std::string& mount_point); |
| 22 | 22 | ||
| 23 | ResultVal<std::unique_ptr<ArchiveBackend>> Open(const Path& path) override; | 23 | ResultVal<std::unique_ptr<ArchiveBackend>> Open(const Path& path) override; |
| 24 | ResultCode Format(const Path& path, const FileSys::ArchiveFormatInfo& format_info) override; | 24 | ResultCode Format(const Path& path, const FileSys::ArchiveFormatInfo& format_info) override; |
diff --git a/src/core/file_sys/path_parser.h b/src/core/file_sys/path_parser.h index 990802579..b9f52f65d 100644 --- a/src/core/file_sys/path_parser.h +++ b/src/core/file_sys/path_parser.h | |||
| @@ -17,7 +17,7 @@ namespace FileSys { | |||
| 17 | */ | 17 | */ |
| 18 | class PathParser { | 18 | class PathParser { |
| 19 | public: | 19 | public: |
| 20 | PathParser(const Path& path); | 20 | explicit PathParser(const Path& path); |
| 21 | 21 | ||
| 22 | /** | 22 | /** |
| 23 | * Checks if the Path is valid. | 23 | * Checks if the Path is valid. |
diff --git a/src/core/file_sys/savedata_archive.h b/src/core/file_sys/savedata_archive.h index 2fb6c452a..176d35710 100644 --- a/src/core/file_sys/savedata_archive.h +++ b/src/core/file_sys/savedata_archive.h | |||
| @@ -18,7 +18,7 @@ namespace FileSys { | |||
| 18 | /// Archive backend for general save data archive type (SaveData and SystemSaveData) | 18 | /// Archive backend for general save data archive type (SaveData and SystemSaveData) |
| 19 | class SaveDataArchive : public ArchiveBackend { | 19 | class SaveDataArchive : public ArchiveBackend { |
| 20 | public: | 20 | public: |
| 21 | SaveDataArchive(const std::string& mount_point_) : mount_point(mount_point_) {} | 21 | explicit SaveDataArchive(const std::string& mount_point_) : mount_point(mount_point_) {} |
| 22 | 22 | ||
| 23 | std::string GetName() const override { | 23 | std::string GetName() const override { |
| 24 | return "SaveDataArchive: " + mount_point; | 24 | return "SaveDataArchive: " + mount_point; |