1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 06:01:13 +02:00

Replace comparisons against wxEmptyString with empty()

This commit is contained in:
Paul Licameli
2019-03-14 16:20:18 -04:00
parent 50074f2cfe
commit b8c0125143
17 changed files with 29 additions and 29 deletions

View File

@@ -139,12 +139,12 @@ void CommandBuilder::BuildCommand(const wxString &cmdName,
wxString cmdParams(cmdParamsArg);
while (cmdParams != wxEmptyString)
while (!cmdParams.empty())
{
cmdParams.Trim(true);
cmdParams.Trim(false);
int splitAt = cmdParams.Find(wxT('='));
if (splitAt < 0 && cmdParams != wxEmptyString)
if (splitAt < 0 && !cmdParams.empty())
{
Failure(wxT("Parameter string is missing '='"));
return;

View File

@@ -58,7 +58,7 @@ bool OpenProjectCommand::Apply(const CommandContext & context){
// Because Open does not return a success or failure, we have to guess
// at this point, based on whether the project file name has
// changed and what to...
return newFileName != wxEmptyString && newFileName != oldFileName;
return !newFileName.empty() && newFileName != oldFileName;
}
bool SaveProjectCommand::DefineParams( ShuttleParams & S ){