diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-14 21:32:59 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-14 21:43:03 +0100 |
commit | bc98d7c1218d6e7758d9c68592e1c8560570d8ad (patch) | |
tree | 9f79a17637b97a4f2baee9158adc2d7499e6e53e | |
parent | dfb4b71fd2f8e67cf2b16e4c0a8cdb692e7d3f6a (diff) |
gui: remove redundant cast
-rw-r--r-- | gui/settings.cpp | 8 | ||||
-rw-r--r-- | logic/main-settings.hpp | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gui/settings.cpp b/gui/settings.cpp index cef93d19..dcb9f6a0 100644 --- a/gui/settings.cpp +++ b/gui/settings.cpp @@ -65,8 +65,8 @@ options_dialog::options_dialog(std::function<void(bool)> pause_keybindings) : center_vr360, center_roll_compensated, }; - for (unsigned k = 0; k < 4; k++) - ui.cbox_centering->setItemData(k, int(centering_modes[k])); + for (int k = 0; k < 4; k++) + ui.cbox_centering->setItemData(k, centering_modes[k]); tie_setting(main.centering_mode, ui.cbox_centering); const reltrans_state reltrans_modes[] = { @@ -75,8 +75,8 @@ options_dialog::options_dialog(std::function<void(bool)> pause_keybindings) : reltrans_non_center, }; - for (unsigned k = 0; k < 3; k++) - ui.reltrans_mode->setItemData(k, int(reltrans_modes[k])); + for (int k = 0; k < 3; k++) + ui.reltrans_mode->setItemData(k, reltrans_modes[k]); tie_setting(main.reltrans_mode, ui.reltrans_mode); diff --git a/logic/main-settings.hpp b/logic/main-settings.hpp index 5638b84c..fcd5e745 100644 --- a/logic/main-settings.hpp +++ b/logic/main-settings.hpp @@ -15,14 +15,14 @@ #include "export.hpp" -enum reltrans_state +enum reltrans_state : int { reltrans_disabled = 0, reltrans_enabled = 1, reltrans_non_center = 2, }; -enum centering_state +enum centering_state : int { center_disabled = 0, center_point = 1, |