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 /gui | |
parent | dfb4b71fd2f8e67cf2b16e4c0a8cdb692e7d3f6a (diff) |
gui: remove redundant cast
Diffstat (limited to 'gui')
-rw-r--r-- | gui/settings.cpp | 8 |
1 files changed, 4 insertions, 4 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); |