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:
1 parent
33f62b0f9f
commit
95dec13203
140 files changed
+318
-277
No files matched your search
@@ -131,7 +131,7 @@ signals:
|
||||
void ExportRecording();
|
||||
void ShowTASInput();
|
||||
|
||||
void SelectionChanged(std::shared_ptr<const UICommon::GameFile> game_file);
|
||||
void SelectionChanged(const std::shared_ptr<const UICommon::GameFile>& game_file);
|
||||
void RecordingStatusChanged(bool recording);
|
||||
void ReadOnlyModeChanged(bool read_only);
|
||||
|
||||
@@ -195,7 +195,7 @@ private:
|
||||
void LogInstructions();
|
||||
void SearchInstruction();
|
||||
|
||||
void OnSelectionChanged(std::shared_ptr<const UICommon::GameFile> game_file);
|
||||
void OnSelectionChanged(const std::shared_ptr<const UICommon::GameFile>& game_file);
|
||||
void OnRecordingStatusChanged(bool recording);
|
||||
void OnReadOnlyModeChanged(bool read_only);
|
||||
void OnDebugModeToggled(bool enabled);
|
||||
|
||||
Reference in new issue
Block a user