From b6dce3e84289319bc6a228385238a20adc1c9b52 Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sun, 18 Sep 2016 10:32:46 -0400 Subject: [PATCH] don't implicitly convert string literal to non-const char * --- src/Project.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Project.cpp b/src/Project.cpp index 3ca74c324..8bbae5beb 100644 --- a/src/Project.cpp +++ b/src/Project.cpp @@ -1381,7 +1381,7 @@ void AudacityProject::SetProjectTitle( int number) if( number >= 0 ){ /* 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.IsEmpty() ? "" : name.c_str() ); + name.IsEmpty() ? "" : (const char *)name.c_str() ); } // If we are not showing numbers, then shows as 'Audacity'. else if( name.IsEmpty() )