IProgressNotifier: Make use of std::move where applicable
Allows calling code to avoid copies entirely.
This commit is contained in:
parent
46e82a99cc
commit
665d1f3560
|
@ -23,7 +23,7 @@ public:
|
||||||
|
|
||||||
void SetTask(int TaskIndex, TString TaskName)
|
void SetTask(int TaskIndex, TString TaskName)
|
||||||
{
|
{
|
||||||
mTaskName = TaskName;
|
mTaskName = std::move(TaskName);
|
||||||
mTaskIndex = TaskIndex;
|
mTaskIndex = TaskIndex;
|
||||||
mTaskCount = Math::Max(mTaskCount, TaskIndex + 1);
|
mTaskCount = Math::Max(mTaskCount, TaskIndex + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue