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