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