1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Remove unnecessary std::move in return statements...

... and comment where it is necessary.
This commit is contained in:
Paul Licameli
2016-09-15 07:39:46 -04:00
parent 4b16705aa5
commit d783762737
18 changed files with 29 additions and 18 deletions

View File

@@ -2337,7 +2337,7 @@ Track::Holder LabelTrack::Cut(double t0, double t1)
if (!Clear(t0, t1))
return{};
return std::move(tmp);
return tmp;
}
#if 0
@@ -2351,7 +2351,7 @@ Track::Holder LabelTrack::SplitCut(double t0, double t1)
if (!SplitDelete(t0, t1))
return {};
return std::move(tmp);
return tmp;
}
#endif
@@ -2402,6 +2402,7 @@ Track::Holder LabelTrack::Copy(double t0, double t1) const
}
lt->mClipLen = (t1 - t0);
// This std::move is needed to "upcast" the pointer type
return std::move(tmp);
}