1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 09:01:15 +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

@@ -258,7 +258,7 @@ void OnExportLabels(const CommandContext &context)
wxFD_SAVE | wxFD_OVERWRITE_PROMPT | wxRESIZE_BORDER,
&project);
if (fName == wxT(""))
if (fName.empty())
return;
// Move existing files out of the way. Otherwise wxTextFile will
@@ -343,7 +343,7 @@ void OnExportMIDI(const CommandContext &context)
wxFD_SAVE | wxFD_OVERWRITE_PROMPT | wxRESIZE_BORDER,
&project);
if (fName == wxT(""))
if (fName.empty())
return;
if(!fName.Contains(wxT("."))) {
@@ -445,7 +445,7 @@ void OnImportLabels(const CommandContext &context)
wxRESIZE_BORDER, // Flags
&project); // Parent
if (fileName != wxT("")) {
if (!fileName.empty()) {
wxTextFile f;
f.Open(fileName);
@@ -487,7 +487,7 @@ void OnImportMIDI(const CommandContext &context)
wxRESIZE_BORDER, // Flags
&project); // Parent
if (fileName != wxT(""))
if (!fileName.empty())
DoImportMIDI(&project, fileName);
}
#endif
@@ -507,7 +507,7 @@ void OnImportRaw(const CommandContext &context)
wxRESIZE_BORDER, // Flags
&project); // Parent
if (fileName == wxT(""))
if (fileName.empty())
return;
TrackHolders newTracks;