mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-07-09 17:25:18 -06:00
Use std::string_view in cell modules
This commit is contained in:
parent
2af7b58ce4
commit
f8c88c3a7a
@ -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)
|
if (file_path.size() >= CELL_MUSIC_EXPORT_UTIL_HDD_PATH_MAX)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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)
|
if (file_path.size() >= CELL_PHOTO_EXPORT_UTIL_HDD_PATH_MAX)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -75,7 +75,7 @@ error_code cellSslGetMemoryInfo()
|
|||||||
return CELL_OK;
|
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;
|
int newID = certID;
|
||||||
|
|
||||||
|
|||||||
@ -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)
|
if (file_path.size() >= CELL_VIDEO_EXPORT_UTIL_HDD_PATH_MAX)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user