mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-15 09:01:12 +01:00
Use enum class ProgressResult, don't interconvert with int or bool
This commit is contained in:
@@ -162,7 +162,7 @@ static void RemoveDependencies(AudacityProject *project,
|
||||
ProgressDialog progress
|
||||
(_("Removing Dependencies"),
|
||||
_("Copying audio data into project..."));
|
||||
int updateResult = eProgressSuccess;
|
||||
auto updateResult = ProgressResult::Success;
|
||||
|
||||
// Hash aliasedFiles based on their full paths and
|
||||
// count total number of bytes to process.
|
||||
@@ -209,7 +209,7 @@ static void RemoveDependencies(AudacityProject *project,
|
||||
// Update the progress bar
|
||||
completedBytes += SAMPLE_SIZE(format) * len;
|
||||
updateResult = progress.Update(completedBytes, totalBytesToProcess);
|
||||
if (updateResult != eProgressSuccess)
|
||||
if (updateResult != ProgressResult::Success)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user