1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02:00

Remove unnecessary initializers for empty wxString

This commit is contained in:
Paul Licameli
2019-03-15 14:41:21 -04:00
parent 135c2a71ce
commit 06b3b42794
24 changed files with 32 additions and 45 deletions

View File

@@ -1080,7 +1080,7 @@ wxString CommandManager::GetLabelWithDisabledAccel(const CommandListEntry *entry
{
wxString label = entry->label;
#if 1
wxString Accel = "";
wxString Accel;
do{
if (!entry->key.empty())
{
@@ -1253,7 +1253,7 @@ void CommandManager::TellUserWhyDisallowed( const wxString & Name, CommandFlag f
wxString reason = _("There was a problem with your last action. If you think\nthis is a bug, please tell us exactly where it occurred.");
// The default title string is 'Disallowed'.
wxString title = _("Disallowed");
wxString helpPage ="";
wxString helpPage;
auto missingFlags = flagsRequired & (~flagsGot );
if( missingFlags & AudioIONotBusyFlag )

View File

@@ -136,7 +136,7 @@ void LispyCommandMessageTarget::EndStruct(){
Update( ")" );
}
void LispyCommandMessageTarget::AddItem(const wxString &value, const wxString &name){
wxString Padding = "";
wxString Padding;
if( name.empty() )
Update( wxString::Format( "%s%s\"%s\"", (mCounts.back()>0)?" ":"", Padding, Escaped(value)));
else

View File

@@ -77,7 +77,7 @@ wxString NormalizedKeyString::Display(bool usesSpecialChars) const
NormalizedKeyString KeyEventToKeyString(const wxKeyEvent & event)
{
wxString newStr = wxT("");
wxString newStr;
long key = event.GetKeyCode();