3636
3737struct RAShot {
3838 std::string id;
39- double parameters[RA_SHOT_NUM_PARAMS];
40- bool constant;
39+ double parameters[RA_SHOT_NUM_PARAMS]{} ;
40+ bool constant{} ;
4141
4242 double GetRX () { return parameters[RA_SHOT_RX]; }
4343 double GetRY () { return parameters[RA_SHOT_RY]; }
@@ -55,8 +55,8 @@ struct RAShot {
5555
5656struct RAReconstruction {
5757 std::string id;
58- double parameters[RA_RECONSTRUCTION_NUM_PARAMS];
59- bool constant;
58+ double parameters[RA_RECONSTRUCTION_NUM_PARAMS]{} ;
59+ bool constant{} ;
6060
6161 double GetRX () { return parameters[RA_RECONSTRUCTION_RX]; }
6262 double GetRY () { return parameters[RA_RECONSTRUCTION_RY]; }
@@ -110,8 +110,8 @@ struct RARelativeMotionConstraint {
110110
111111 std::string reconstruction_id;
112112 std::string shot_id;
113- double parameters[RA_SHOT_NUM_PARAMS];
114- double scale_matrix[RA_SHOT_NUM_PARAMS * RA_SHOT_NUM_PARAMS];
113+ double parameters[RA_SHOT_NUM_PARAMS]{} ;
114+ double scale_matrix[RA_SHOT_NUM_PARAMS * RA_SHOT_NUM_PARAMS]{} ;
115115};
116116
117117struct RAAbsolutePositionConstraint {
@@ -420,7 +420,7 @@ class ReconstructionAlignment {
420420
421421 void AddAbsolutePositionConstraint (const std::string& shot_id, double x,
422422 double y, double z, double std_deviation) {
423- RAAbsolutePositionConstraint a;
423+ RAAbsolutePositionConstraint a{} ;
424424 a.shot = &shots_[shot_id];
425425 a.position [0 ] = x;
426426 a.position [1 ] = y;
@@ -432,7 +432,7 @@ class ReconstructionAlignment {
432432 void AddRelativeAbsolutePositionConstraint (
433433 const std::string& reconstruction_id, const std::string& shot_id,
434434 double x, double y, double z, double std_deviation) {
435- RARelativeAbsolutePositionConstraint a;
435+ RARelativeAbsolutePositionConstraint a{} ;
436436 a.reconstruction = &reconstructions_[reconstruction_id];
437437 a.shot = &shots_[shot_id];
438438 a.position [0 ] = x;
@@ -447,7 +447,7 @@ class ReconstructionAlignment {
447447 const std::string& reconstruction_b_id,
448448 double xb, double yb, double zb,
449449 double std_deviation) {
450- RACommonPointConstraint c;
450+ RACommonPointConstraint c{} ;
451451 c.reconstruction_a = &reconstructions_[reconstruction_a_id];
452452 c.point_a [0 ] = xa;
453453 c.point_a [1 ] = ya;
@@ -466,7 +466,7 @@ class ReconstructionAlignment {
466466 const std::string& shot_b_id,
467467 double std_deviation_center,
468468 double std_deviation_rotation) {
469- RACommonCameraConstraint c;
469+ RACommonCameraConstraint c{} ;
470470 c.reconstruction_a = &reconstructions_[reconstruction_a_id];
471471 c.shot_a = &shots_[shot_a_id];
472472 c.reconstruction_b = &reconstructions_[reconstruction_b_id];
0 commit comments