1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 07:59:27 +02:00

Correct some comments.

Rename method for consistency.
This commit is contained in:
v.audacity 2010-08-08 00:26:07 +00:00
parent 56adffdce6
commit c7826bcdf9
3 changed files with 6 additions and 6 deletions

View File

@ -3211,7 +3211,7 @@ void AudacityProject::OnCopy()
void AudacityProject::OnPaste()
{
// Handle text paste (into active label) first.
if (this->HandleTextPaste())
if (this->HandlePasteText())
return;
// If nothing's selected, we just insert new tracks.
@ -3420,7 +3420,7 @@ void AudacityProject::OnPaste()
// Handle text paste (into active label), if any. Return true if did paste.
// (This was formerly the first part of overly-long OnPaste.)
bool AudacityProject::HandleTextPaste()
bool AudacityProject::HandlePasteText()
{
TrackListOfKindIterator iterLabelTrack(Track::Label, mTracks);
LabelTrack* pLabelTrack = (LabelTrack*)(iterLabelTrack.First());

View File

@ -206,7 +206,7 @@ void OnCopy();
void OnPaste();
private:
bool HandleTextPaste(); // Handle text paste (into active label), if any. Return true if pasted.
bool HandlePasteText(); // Handle text paste (into active label), if any. Return true if pasted.
bool HandlePasteNothingSelected(); // Return true if nothing selected, regardless of paste result.
public:

View File

@ -462,13 +462,13 @@ bool WaveTrack::ClearAndAddCutLine(double t0, double t1)
//
// ClearAndPaste() is a specialized version of HandleClear()
// followed by HandlePaste() and is used mostly by effects that
// followed by Paste() and is used mostly by effects that
// can't replace track data directly using Get()/Set().
//
// HandleClear() removes any cut/split lines lines with the
// cleared range, but, in most cases, effects want to preserve
// the existing cut/split lines, so they are saved before the
// HandleClear()/HandlePaste() and restored after.
// HandleClear()/Paste() and restored after.
//
// If the pasted track overlaps two or more clips, then it will
// be pasted with visible split lines. Normally, effects do not
@ -507,7 +507,7 @@ bool WaveTrack::ClearAndPaste(double t0, // Start of time to clear
t1 = LongSamplesToTime(TimeToLongSamples(t1));
// Save the cut/split lines whether preserving or not since merging
// needs to know if a clip boundary is being crossed since HandlePaste()
// needs to know if a clip boundary is being crossed since Paste()
// will add split lines around the pasted clip if so.
for (ic = GetClipIterator(); ic; ic = ic->GetNext()) {
double st;