Просмотр исходного кода

motion_input: Mark constructor as explicit

Lioncash 5 лет назад
Родитель
Сommit
0a50ba3bd1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/input_common/motion_input.h

+ 1 - 1
src/input_common/motion_input.h

@@ -13,7 +13,7 @@ namespace InputCommon {
 
 class MotionInput {
 public:
-    MotionInput(f32 new_kp, f32 new_ki, f32 new_kd);
+    explicit MotionInput(f32 new_kp, f32 new_ki, f32 new_kd);
 
     MotionInput(const MotionInput&) = default;
     MotionInput& operator=(const MotionInput&) = default;