mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-17 08:01:12 +02:00
Remove unnecessary std::move in return statements...
... and comment where it is necessary.
This commit is contained in:
@@ -39,6 +39,7 @@ movable_ptr<ODTask> ODComputeSummaryTask::Clone() const
|
||||
{
|
||||
auto clone = make_movable<ODComputeSummaryTask>();
|
||||
clone->mDemandSample = GetDemandSample();
|
||||
// This std::move is needed to "upcast" the pointer type
|
||||
return std::move(clone);
|
||||
}
|
||||
|
||||
|
@@ -149,6 +149,7 @@ movable_ptr<ODTask> ODDecodeFFmpegTask::Clone() const
|
||||
clone->mDemandSample=GetDemandSample();
|
||||
|
||||
//the decoders and blockfiles should not be copied. They are created as the task runs.
|
||||
// This std::move is needed to "upcast" the pointer type
|
||||
return std::move(clone);
|
||||
}
|
||||
|
||||
|
@@ -39,6 +39,7 @@ movable_ptr<ODTask> ODDecodeFlacTask::Clone() const
|
||||
clone->mDemandSample = GetDemandSample();
|
||||
|
||||
//the decoders and blockfiles should not be copied. They are created as the task runs.
|
||||
// This std::move is needed to "upcast" the pointer type
|
||||
return std::move(clone);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user