mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-30 15:39:27 +02:00
don't implicitly convert string literal to non-const char *
This commit is contained in:
parent
3b7b7e1481
commit
b6dce3e842
@ -1381,7 +1381,7 @@ void AudacityProject::SetProjectTitle( int number)
|
|||||||
if( number >= 0 ){
|
if( number >= 0 ){
|
||||||
/* i18n-hint: The %02i is the project number, the %s is the project name.*/
|
/* i18n-hint: The %02i is the project number, the %s is the project name.*/
|
||||||
name = wxString::Format( _TS("[Project %02i] Audacity \"%s\""), number+1 ,
|
name = wxString::Format( _TS("[Project %02i] Audacity \"%s\""), number+1 ,
|
||||||
name.IsEmpty() ? "<untitled>" : name.c_str() );
|
name.IsEmpty() ? "<untitled>" : (const char *)name.c_str() );
|
||||||
}
|
}
|
||||||
// If we are not showing numbers, then <untitled> shows as 'Audacity'.
|
// If we are not showing numbers, then <untitled> shows as 'Audacity'.
|
||||||
else if( name.IsEmpty() )
|
else if( name.IsEmpty() )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user