mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-19 00:42:58 -05:00
Improve usage of std::move and const references parameters
Accomplished using `run-clang-tidy` with `performance-move-const-arg,performance-unnecessary-value-param,modernize-pass-by-value`. Changed arguments to const references, removed them where inappropriate (e.g. sink parameters). Same with std::move. Manually reviewed each change to make sure that it makes sense, and do something more appropriate if possible.
This commit is contained in:
@@ -837,9 +837,9 @@ static void GenerateBuilderNodesFromFileSystem(const VolumeDisc& volume, const P
|
||||
}
|
||||
}
|
||||
|
||||
DirectoryBlobPartition::DirectoryBlobPartition(const std::string& root_directory,
|
||||
DirectoryBlobPartition::DirectoryBlobPartition(std::string root_directory,
|
||||
std::optional<bool> is_wii)
|
||||
: m_root_directory(root_directory)
|
||||
: m_root_directory(std::move(root_directory))
|
||||
{
|
||||
std::vector<u8> disc_header(DISCHEADER_SIZE);
|
||||
if (ReadFileToVector(m_root_directory + "sys/boot.bin", &disc_header) < 0x20)
|
||||
|
||||
Reference in New Issue
Block a user