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:
@@ -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);
|
||||
|
@@ -769,7 +769,7 @@ void CommandManager::AddItem(const wxChar *name,
|
||||
|
||||
wxString cookedParameter;
|
||||
const auto ¶meter = options.parameter;
|
||||
if( parameter == "" )
|
||||
if( parameter.empty() )
|
||||
cookedParameter = name;
|
||||
else
|
||||
cookedParameter = parameter;
|
||||
|
@@ -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("-")));
|
||||
|
Reference in New Issue
Block a user