1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-22 06:22:58 +02:00

"new"->"NEW" in comments, easier to find remaining naked operator new

This commit is contained in:
Paul Licameli
2016-02-13 10:43:16 -05:00
parent 56e7653343
commit 7c4c45a0d5
143 changed files with 451 additions and 451 deletions

View File

@@ -301,7 +301,7 @@ void ThemeBase::LoadThemeAtStartUp( bool bLookForExternalFiles )
// code that follows...
//
// However, I think it is better to get the user to
// build a new image cache, which they can do easily
// build a NEW image cache, which they can do easily
// from the Theme preferences tab.
#if 0
// and now add any available component images.
@@ -434,7 +434,7 @@ void FlowPacker::SetNewGroup( int iGroupSize )
void FlowPacker::GetNextPosition( int xSize, int ySize )
{
// if the height has increased, then we are on a new group.
// if the height has increased, then we are on a NEW group.
if(( ySize > myHeight )||(mFlags != mOldFlags ))
{
SetNewGroup( ((mFlags & resFlagPaired)!=0) ? 2 : 1 );
@@ -684,7 +684,7 @@ void ThemeBase::WriteImageMap( )
int i;
mFlow.Init( ImageCacheWidth );
wxFFile File( FileNames::ThemeCacheHtm(), wxT("wb") );// I'll put in new lines explicitly.
wxFFile File( FileNames::ThemeCacheHtm(), wxT("wb") );// I'll put in NEW lines explicitly.
if( !File.IsOpened() )
return;
@@ -822,7 +822,7 @@ bool ThemeBase::ReadImageCache( bool bBinaryRead, bool bOkIfNotFound)
// If we get this message, it means that the data in file
// was not a valid png image.
// Most likely someone edited it by mistake,
// Or some experiment is being tried with new formats for it.
// Or some experiment is being tried with NEW formats for it.
wxMessageBox(_("Audacity could not read its default theme.\nPlease report the problem."));
return false;
}
@@ -856,16 +856,16 @@ bool ThemeBase::ReadImageCache( bool bBinaryRead, bool bOkIfNotFound)
mFlow.GetNextPosition( iColSize, iColSize );
mFlow.RectMid( x, y );
// Only change the colour if the alpha is opaque.
// This allows us to add new colours more easily.
// This allows us to add NEW colours more easily.
if( ImageCache.GetAlpha(x,y ) > 128 )
{
TempColour = wxColour(
ImageCache.GetRed( x,y),
ImageCache.GetGreen( x,y),
ImageCache.GetBlue(x,y));
/// \todo revisit this hack which makes adding new colours easier
/// \todo revisit this hack which makes adding NEW colours easier
/// but which prevents a colour of (1,1,1) from being added.
/// find an alternative way to make adding new colours easier.
/// find an alternative way to make adding NEW colours easier.
/// e.g. initialise the background to translucent, perhaps.
if( TempColour != wxColour(1,1,1) )
mColours[i] = TempColour;