mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 15:36:26 +00:00
Replace std::string::npos with umax
This commit is contained in:
parent
0a41999818
commit
7a8772dafa
18 changed files with 42 additions and 42 deletions
|
|
@ -626,12 +626,12 @@ void main_window::HandlePupInstallation(QString file_path)
|
|||
auto updatefilenames = update_files.get_filenames();
|
||||
|
||||
updatefilenames.erase(std::remove_if(
|
||||
updatefilenames.begin(), updatefilenames.end(), [](std::string s) { return s.find("dev_flash_") == std::string::npos; }),
|
||||
updatefilenames.begin(), updatefilenames.end(), [](std::string s) { return s.find("dev_flash_") == umax; }),
|
||||
updatefilenames.end());
|
||||
|
||||
std::string version_string = pup.get_file(0x100).to_string();
|
||||
size_t version_pos = version_string.find('\n');
|
||||
if (version_pos != std::string::npos)
|
||||
if (version_pos != umax)
|
||||
{
|
||||
version_string.erase(version_pos);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue