Explorar o código

motion_input: Mark constructor as explicit

Lioncash %!s(int64=5) %!d(string=hai) anos
pai
achega
0a50ba3bd1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;