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

Sweep for filename copying: various

This commit is contained in:
Paul Licameli
2016-02-22 00:17:20 -05:00
parent 2d7e21536e
commit f00144e9a5
15 changed files with 91 additions and 80 deletions

View File

@@ -619,7 +619,7 @@ void ThemeBase::CreateImageCache( bool bBinarySave )
// IF nBinarySave, THEN saving to a normal PNG file.
if( bBinarySave )
{
wxString FileName = FileNames::ThemeCachePng();
const wxString &FileName = FileNames::ThemeCachePng();
// Perhaps we should prompt the user if they are overwriting
// an existing theme cache?
@@ -650,7 +650,7 @@ void ThemeBase::CreateImageCache( bool bBinarySave )
else
{
SourceOutputStream OutStream;
wxString FileName = FileNames::ThemeCacheAsCee( );
const wxString &FileName = FileNames::ThemeCacheAsCee( );
if( !OutStream.OpenFile( FileName ))
{
wxMessageBox(
@@ -791,7 +791,7 @@ bool ThemeBase::ReadImageCache( bool bBinaryRead, bool bOkIfNotFound)
// IF bBinary read THEN a normal read from a PNG file
if( bBinaryRead )
{
wxString FileName = FileNames::ThemeCachePng();
const wxString &FileName = FileNames::ThemeCachePng();
if( !wxFileExists( FileName ))
{
if( bOkIfNotFound )