From dce6389d878e44535ba2ed1a221eeeb61414204f Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sat, 1 Apr 2023 10:00:01 -0700 Subject: [PATCH] FHU: Convert relative/absolute check to string_view --- FEXHeaderUtils/FEXHeaderUtils/Filesystem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FEXHeaderUtils/FEXHeaderUtils/Filesystem.h b/FEXHeaderUtils/FEXHeaderUtils/Filesystem.h index 5b26ea91a..999c9e394 100644 --- a/FEXHeaderUtils/FEXHeaderUtils/Filesystem.h +++ b/FEXHeaderUtils/FEXHeaderUtils/Filesystem.h @@ -127,11 +127,11 @@ namespace FHU::Filesystem { return SubString; } - inline bool IsRelative(const fextl::string &Path) { + inline bool IsRelative(const std::string_view Path) { return !Path.starts_with('/'); } - inline bool IsAbsolute(const fextl::string &Path) { + inline bool IsAbsolute(const std::string_view Path) { return Path.starts_with('/'); }