From 665d1f35605d3b67f0170f822ac9d21d5bf358e1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 01:12:38 -0400 Subject: [PATCH] IProgressNotifier: Make use of std::move where applicable Allows calling code to avoid copies entirely. --- src/Core/IProgressNotifier.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/IProgressNotifier.h b/src/Core/IProgressNotifier.h index 65c83aa2..09de1f34 100644 --- a/src/Core/IProgressNotifier.h +++ b/src/Core/IProgressNotifier.h @@ -23,7 +23,7 @@ public: void SetTask(int TaskIndex, TString TaskName) { - mTaskName = TaskName; + mTaskName = std::move(TaskName); mTaskIndex = TaskIndex; mTaskCount = Math::Max(mTaskCount, TaskIndex + 1); }