aboutsummaryrefslogtreecommitdiff
path: root/launcher/tasks/Task.cpp
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-04-07 19:44:57 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-05-01 10:48:00 -0700
commit236764adf6cb985dfc6d00b9cbcba8eb176510ed (patch)
tree61708da2a77617c2a0a4810b0cc52ed6c6959bd4 /launcher/tasks/Task.cpp
parenta80b4255515b1f3e61d12aeefcef6bf16ac4ee6b (diff)
downloadPrismLauncher-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/Task.cpp')
-rw-r--r--launcher/tasks/Task.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/tasks/Task.cpp b/launcher/tasks/Task.cpp
index fd1b8898..b0addd46 100644
--- a/launcher/tasks/Task.cpp
+++ b/launcher/tasks/Task.cpp
@@ -161,7 +161,7 @@ void Task::emitSucceeded()
emit finished();
}
-void Task::propogateStepProgress(TaskStepProgress task_progress)
+void Task::propogateStepProgress(TaskStepProgress const& task_progress)
{
emit stepProgress(task_progress);
}