Browse Source

motion_input: Mark constructor as explicit

Lioncash 5 năm trước cách đây
mục cha
commit
0a50ba3bd1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;