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

Replace comparisons against wxEmptyString with empty()

This commit is contained in:
Paul Licameli
2019-03-14 16:20:18 -04:00
parent 50074f2cfe
commit b8c0125143
17 changed files with 29 additions and 29 deletions

View File

@@ -472,7 +472,7 @@ void KeyConfigPrefs::OnFilterKeyDown(wxKeyEvent & e)
wxString key = KeyEventToKeyString(e).Display();
t->SetValue(key);
if (key != wxEmptyString) {
if (!key.empty()) {
mView->SetFilter(t->GetValue());
}
}

View File

@@ -66,7 +66,7 @@ void ModulePrefs::GetAllModuleStatuses(){
gPrefs->Read( str, &iStatus, kModuleDisabled );
wxString fname;
gPrefs->Read( wxString( wxT("/ModulePath/") ) + str, &fname, wxEmptyString );
if( fname != wxEmptyString && wxFileExists( fname ) ){
if( !fname.empty() && wxFileExists( fname ) ){
if( iStatus > kModuleNew ){
iStatus = kModuleNew;
gPrefs->Write( str, iStatus );

View File

@@ -115,7 +115,7 @@ int wxTreebookExt::SetSelection(size_t n)
static_cast<wxDialog*>(GetParent())->SetName( Temp );
PrefsPanel *const panel = static_cast<PrefsPanel *>(GetPage(n));
const bool showHelp = (panel->HelpPageName() != wxEmptyString);
const bool showHelp = (!panel->HelpPageName().empty());
const bool showPreview = panel->ShowsPreviewButton();
wxWindow *const helpButton = wxWindow::FindWindowById(wxID_HELP, GetParent());
wxWindow *const previewButton = wxWindow::FindWindowById(wxID_PREVIEW, GetParent());