refactor: convert C++ enums to C++11 enum classes (#18087)
This commit is contained in:
parent
a59dc56fa6
commit
c25c31e018
36 changed files with 199 additions and 204 deletions
|
@ -737,15 +737,15 @@ void TopLevelWindow::SetProgressBar(double progress, mate::Arguments* args) {
|
|||
std::string mode;
|
||||
args->GetNext(&options) && options.Get("mode", &mode);
|
||||
|
||||
NativeWindow::ProgressState state = NativeWindow::PROGRESS_NORMAL;
|
||||
NativeWindow::ProgressState state = NativeWindow::ProgressState::kNormal;
|
||||
if (mode == "error")
|
||||
state = NativeWindow::PROGRESS_ERROR;
|
||||
state = NativeWindow::ProgressState::kError;
|
||||
else if (mode == "paused")
|
||||
state = NativeWindow::PROGRESS_PAUSED;
|
||||
state = NativeWindow::ProgressState::kPaused;
|
||||
else if (mode == "indeterminate")
|
||||
state = NativeWindow::PROGRESS_INDETERMINATE;
|
||||
state = NativeWindow::ProgressState::kIndeterminate;
|
||||
else if (mode == "none")
|
||||
state = NativeWindow::PROGRESS_NONE;
|
||||
state = NativeWindow::ProgressState::kNone;
|
||||
|
||||
window_->SetProgressBar(progress, state);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue