DiscIO: Use std::string_view in FileSystem::FindFileInfo

...and in the functions that call it.
This commit is contained in:
JosJuice
2019-05-29 08:16:12 +02:00
parent 5fb56505b2
commit d4b069f458
8 changed files with 35 additions and 21 deletions

View File

@ -4,6 +4,9 @@
#include "DiscIO/VolumeFileBlobReader.h"
#include <memory>
#include <string_view>
#include "DiscIO/Filesystem.h"
#include "DiscIO/Volume.h"
@ -11,7 +14,7 @@ namespace DiscIO
{
std::unique_ptr<VolumeFileBlobReader> VolumeFileBlobReader::Create(const Volume& volume,
const Partition& partition,
const std::string& file_path)
std::string_view file_path)
{
const FileSystem* file_system = volume.GetFileSystem(partition);
if (!file_system)