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

@@ -236,7 +236,7 @@ void DevicePrefs::OnHost(wxCommandEvent & e)
wxString recDevice;
recDevice = mRecordDevice;
if (this->mRecordSource != wxT(""))
if (!this->mRecordSource.empty())
recDevice += wxT(": ") + mRecordSource;
mRecord->Clear();

View File

@@ -145,7 +145,7 @@ void DirectoriesPrefs::OnChooseTempDir(wxCommandEvent & e)
_("Choose a location to place the temporary directory"),
oldTempDir );
int retval = dlog.ShowModal();
if (retval != wxID_CANCEL && dlog.GetPath() != wxT("")) {
if (retval != wxID_CANCEL && !dlog.GetPath().empty()) {
wxFileName tmpDirPath;
tmpDirPath.AssignDir(dlog.GetPath());