mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-16 15:57:52 +01:00
"new"->"NEW" in comments, easier to find remaining naked operator new
This commit is contained in:
@@ -137,7 +137,7 @@ void ToolDock::Dock( ToolBar *bar, int before )
|
||||
// Reset height
|
||||
bar->SetSize( bar->GetSize().x, bar->GetDockedSize().y );
|
||||
|
||||
// Park the new bar in the correct berth
|
||||
// Park the NEW bar in the correct berth
|
||||
if( before >= 0 && before < (int)mDockedBars.GetCount() )
|
||||
{
|
||||
mDockedBars.Insert( bar, before );
|
||||
@@ -231,7 +231,7 @@ void ToolDock::LayoutToolBars()
|
||||
// Calc the next possible horizontal location.
|
||||
int x = cpos.x + tw;
|
||||
|
||||
// Add a new stack entry
|
||||
// Add a NEW stack entry
|
||||
stkcnt++;
|
||||
stack[ stkcnt ].SetX( x );
|
||||
stack[ stkcnt ].SetY( cpos.y );
|
||||
@@ -267,7 +267,7 @@ void ToolDock::LayoutToolBars()
|
||||
}
|
||||
|
||||
//
|
||||
// Determine the location and bar before which a new bar would be placed
|
||||
// Determine the location and bar before which a NEW bar would be placed
|
||||
//
|
||||
// 'rect' will be the rectangle for the dock marker.
|
||||
int ToolDock::PositionBar( ToolBar *t, wxPoint & pos, wxRect & rect )
|
||||
@@ -307,10 +307,10 @@ int ToolDock::PositionBar( ToolBar *t, wxPoint & pos, wxRect & rect )
|
||||
// If last entry, then it is the
|
||||
if (ndx == cnt)
|
||||
{
|
||||
// ...so check to see if the new bar has been placed yet
|
||||
// ...so check to see if the NEW bar has been placed yet
|
||||
if (tindx == -1)
|
||||
{
|
||||
// Add the new bars' dimensions to the mix
|
||||
// Add the NEW bars' dimensions to the mix
|
||||
tinfo[ct].rect = t->GetRect();
|
||||
tinfo[ct].min = t->GetDockedSize();
|
||||
tindx = ct;
|
||||
@@ -325,7 +325,7 @@ int ToolDock::PositionBar( ToolBar *t, wxPoint & pos, wxRect & rect )
|
||||
tinfo[ct].rect = b->GetRect();
|
||||
tinfo[ct].min = b->GetSize();
|
||||
|
||||
// Maybe insert the new bar if it hasn't already been done
|
||||
// Maybe insert the NEW bar if it hasn't already been done
|
||||
// and is in the right place.
|
||||
if (tindx == -1)
|
||||
{
|
||||
@@ -340,7 +340,7 @@ int ToolDock::PositionBar( ToolBar *t, wxPoint & pos, wxRect & rect )
|
||||
// Does the location fall within this bar?
|
||||
if (r.Contains(pos) || pos.y <= r.y)
|
||||
{
|
||||
// Add the new bars' dimensions to the mix
|
||||
// Add the NEW bars' dimensions to the mix
|
||||
tinfo[ct].rect = t->GetRect();
|
||||
tinfo[ct].min = t->GetDockedSize();
|
||||
tindx = ct;
|
||||
@@ -387,7 +387,7 @@ int ToolDock::PositionBar( ToolBar *t, wxPoint & pos, wxRect & rect )
|
||||
// Calc the next possible horizontal location.
|
||||
int x = cpos.x + tw;
|
||||
|
||||
// Add a new stack entry
|
||||
// Add a NEW stack entry
|
||||
stkcnt++;
|
||||
stack[stkcnt].SetX(x);
|
||||
stack[stkcnt].SetY(cpos.y);
|
||||
|
||||
Reference in New Issue
Block a user