mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 12:45:44 +00:00
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.
This commit is contained in:
parent
de2a8eb52f
commit
204ed73e8c
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ FileType IdentifyFile(FileSys::VirtualFile file) {
|
||||||
}
|
}
|
||||||
|
|
||||||
FileType IdentifyFile(const std::string& file_name) {
|
FileType IdentifyFile(const std::string& file_name) {
|
||||||
return IdentifyFile(FileSys::VirtualFile(std::make_shared<FileSys::RealVfsFile>(file_name)));
|
return IdentifyFile(std::make_shared<FileSys::RealVfsFile>(file_name));
|
||||||
}
|
}
|
||||||
|
|
||||||
FileType GuessFromFilename(const std::string& name) {
|
FileType GuessFromFilename(const std::string& name) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue