Use std::string_view in cell modules

This commit is contained in:
Megamouse 2026-06-14 06:24:53 +02:00
parent 2af7b58ce4
commit f8c88c3a7a
4 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ struct music_export
};
bool check_music_path(const std::string& file_path)
bool check_music_path(std::string_view file_path)
{
if (file_path.size() >= CELL_MUSIC_EXPORT_UTIL_HDD_PATH_MAX)
{

View File

@ -74,7 +74,7 @@ struct photo_export
};
bool check_photo_path(const std::string& file_path)
bool check_photo_path(std::string_view file_path)
{
if (file_path.size() >= CELL_PHOTO_EXPORT_UTIL_HDD_PATH_MAX)
{

View File

@ -75,7 +75,7 @@ error_code cellSslGetMemoryInfo()
return CELL_OK;
}
std::string getCert(const std::string& certPath, const int certID, const bool isNormalCert)
std::string getCert(std::string_view certPath, const int certID, const bool isNormalCert)
{
int newID = certID;

View File

@ -76,7 +76,7 @@ struct video_export
};
bool check_movie_path(const std::string& file_path)
bool check_movie_path(std::string_view file_path)
{
if (file_path.size() >= CELL_VIDEO_EXPORT_UTIL_HDD_PATH_MAX)
{