1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +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

@@ -45,7 +45,7 @@ bool BatchEvalCommand::Apply(const CommandContext & context)
MacroCommandsCatalog catalog(&context.project);
wxString macroName = GetString(wxT("MacroName"));
if (macroName != wxT(""))
if (!macroName.empty())
{
MacroCommands batch;
batch.ReadMacro(macroName);

View File

@@ -769,7 +769,7 @@ void CommandManager::AddItem(const wxChar *name,
wxString cookedParameter;
const auto &parameter = options.parameter;
if( parameter == "" )
if( parameter.empty() )
cookedParameter = name;
else
cookedParameter = parameter;

View File

@@ -786,7 +786,7 @@ wxRect ScreenshotCommand::GetTrackRect( AudacityProject * pProj, TrackPanel * pa
}
wxString ScreenshotCommand::WindowFileName(AudacityProject * proj, wxTopLevelWindow *w){
if (w != proj && w->GetTitle() != wxT("")) {
if (w != proj && !w->GetTitle().empty()) {
mFileName = MakeFileName(mFilePath,
kCaptureWhatStrings[ mCaptureMode ].Translation() +
(wxT("-") + w->GetTitle() + wxT("-")));