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