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