summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gui/settings.cpp8
-rw-r--r--logic/main-settings.hpp4
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,