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:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user