mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 20:22:13 +01:00
Remove unnecessary std::move in return statements...
... and comment where it is necessary.
This commit is contained in:
@@ -164,6 +164,7 @@ Track::Holder NoteTrack::Duplicate() const
|
||||
#ifdef EXPERIMENTAL_MIDI_OUT
|
||||
duplicate->SetGain(GetGain());
|
||||
#endif
|
||||
// This std::move is needed to "upcast" the pointer type
|
||||
return std::move(duplicate);
|
||||
}
|
||||
|
||||
@@ -452,6 +453,7 @@ Track::Holder NoteTrack::Cut(double t0, double t1)
|
||||
//(mBottomNote, mDirManager, mLastMidiPosition,
|
||||
// mSerializationBuffer, mSerializationLength, mVisibleChannels)
|
||||
|
||||
// This std::move is needed to "upcast" the pointer type
|
||||
return std::move(newTrack);
|
||||
}
|
||||
|
||||
@@ -473,6 +475,7 @@ Track::Holder NoteTrack::Copy(double t0, double t1) const
|
||||
//(mBottomNote, mDirManager, mLastMidiPosition,
|
||||
// mSerializationBuffer, mSerializationLength, mVisibleChannels)
|
||||
|
||||
// This std::move is needed to "upcast" the pointer type
|
||||
return std::move(newTrack);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user