mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 21:11:25 +12:00
Qt: Replace QMap with std::map
This should reduce the amount of string conversions during list refreshes
This commit is contained in:
parent
c68f42e0ee
commit
2262ac1684
32 changed files with 108 additions and 84 deletions
|
@ -2634,7 +2634,7 @@ bool fs::pending_file::commit(bool overwrite)
|
|||
return false;
|
||||
}
|
||||
|
||||
stx::generator<fs::dir_entry&> fs::list_dir_recursively(std::string path)
|
||||
stx::generator<fs::dir_entry&> fs::list_dir_recursively(const std::string& path)
|
||||
{
|
||||
for (auto& entry : fs::dir(path))
|
||||
{
|
||||
|
|
|
@ -837,5 +837,5 @@ namespace fs
|
|||
|
||||
file make_gather(std::vector<file>);
|
||||
|
||||
stx::generator<dir_entry&> list_dir_recursively(std::string path);
|
||||
stx::generator<dir_entry&> list_dir_recursively(const std::string& path);
|
||||
}
|
||||
|
|
|
@ -2731,7 +2731,7 @@ void thread_base::exec()
|
|||
|
||||
[[noreturn]] void thread_ctrl::emergency_exit(std::string_view reason)
|
||||
{
|
||||
if (std::string info = dump_useful_thread_info(); !info.empty())
|
||||
if (const std::string info = dump_useful_thread_info(); !info.empty())
|
||||
{
|
||||
sys_log.notice("\n%s", info);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue