diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-04-07 19:44:57 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2023-05-01 10:48:00 -0700 |
commit | 236764adf6cb985dfc6d00b9cbcba8eb176510ed (patch) | |
tree | 61708da2a77617c2a0a4810b0cc52ed6c6959bd4 /launcher/tasks/ConcurrentTask.h | |
parent | a80b4255515b1f3e61d12aeefcef6bf16ac4ee6b (diff) | |
download | PrismLauncher-236764adf6cb985dfc6d00b9cbcba8eb176510ed.tar.gz PrismLauncher-236764adf6cb985dfc6d00b9cbcba8eb176510ed.tar.bz2 PrismLauncher-236764adf6cb985dfc6d00b9cbcba8eb176510ed.zip |
refactor: Qt can handle const& in signals and slots
While most Qt types cna use implicit data sharing
pasing our own structs means copies. const& ensure
it's only copied as needed by Qt.
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/tasks/ConcurrentTask.h')
-rw-r--r-- | launcher/tasks/ConcurrentTask.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/tasks/ConcurrentTask.h b/launcher/tasks/ConcurrentTask.h index 284fa345..aec707bc 100644 --- a/launcher/tasks/ConcurrentTask.h +++ b/launcher/tasks/ConcurrentTask.h @@ -77,7 +77,7 @@ slots: void subTaskStatus(Task::Ptr task, const QString &msg); void subTaskDetails(Task::Ptr task, const QString &msg); void subTaskProgress(Task::Ptr task, qint64 current, qint64 total); - void subTaskStepProgress(Task::Ptr task, TaskStepProgress task_step_progress); + void subTaskStepProgress(Task::Ptr task, TaskStepProgress const& task_step_progress); protected: // NOTE: This is not thread-safe. |