diff options
| author | 2018-07-23 17:44:55 -0400 | |
|---|---|---|
| committer | 2018-07-23 17:44:58 -0400 | |
| commit | a147fa5825cdcc3d0c776856f44133ed72b3d773 (patch) | |
| tree | 1df8873dee6d26d2cb7a9dda251b0faf6f5ae206 /src/core/loader/loader.cpp | |
| parent | Merge pull request #695 from DarkLordZach/nro-asset (diff) | |
| download | yuzu-a147fa5825cdcc3d0c776856f44133ed72b3d773.tar.gz yuzu-a147fa5825cdcc3d0c776856f44133ed72b3d773.tar.xz yuzu-a147fa5825cdcc3d0c776856f44133ed72b3d773.zip | |
loader: Remove unnecessary constructor call in IdentifyFile()
RealVfsFile inherits from VfsFile, the instance from std::make_shared is
already compatible with the function argument type, making the copy
constructor call unnecessary.
Diffstat (limited to 'src/core/loader/loader.cpp')
| -rw-r--r-- | src/core/loader/loader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index 4cbd9e285..cbc4177c6 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp | |||
| @@ -42,7 +42,7 @@ FileType IdentifyFile(FileSys::VirtualFile file) { | |||
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | FileType IdentifyFile(const std::string& file_name) { | 44 | FileType IdentifyFile(const std::string& file_name) { |
| 45 | return IdentifyFile(FileSys::VirtualFile(std::make_shared<FileSys::RealVfsFile>(file_name))); | 45 | return IdentifyFile(std::make_shared<FileSys::RealVfsFile>(file_name)); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | FileType GuessFromFilename(const std::string& name) { | 48 | FileType GuessFromFilename(const std::string& name) { |