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>
This commit is contained in:
parent
a80b425551
commit
236764adf6
6 changed files with 17 additions and 15 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue