1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Replace comparisons against "" with empty()

This commit is contained in:
Paul Licameli
2019-03-14 13:04:37 -04:00
parent 804b6c8bd8
commit 50074f2cfe
29 changed files with 67 additions and 67 deletions

View File

@@ -204,7 +204,7 @@ bool ExportPlugin::IsExtension(const wxString & ext, int index)
wxString defext = GetExtension(i);
auto defexts = GetExtensions(i);
int indofext = defexts.Index(ext, false);
if (defext == wxT("") || (indofext != wxNOT_FOUND))
if (defext.empty() || (indofext != wxNOT_FOUND))
isext = true;
}
return isext;

View File

@@ -391,12 +391,12 @@ void ExportMultiple::EnableControls()
bool ok = true;
if (mLabel->GetValue() && mFirst->GetValue() &&
mFirstFileName->GetValue() == wxT("") &&
mPrefix->GetValue() == wxT(""))
mFirstFileName->GetValue().empty() &&
mPrefix->GetValue().empty())
ok = false;
if (mByNumber->GetValue() &&
mPrefix->GetValue() == wxT(""))
mPrefix->GetValue().empty())
ok = false;
mExport->Enable(ok);
@@ -458,7 +458,7 @@ void ExportMultiple::OnChoose(wxCommandEvent& WXUNUSED(event))
_("Choose a location to save the exported files"),
mDir->GetValue());
dlog.ShowModal();
if (dlog.GetPath() != wxT(""))
if (!dlog.GetPath().empty())
mDir->SetValue(dlog.GetPath());
}