Skip to content

Commit

Permalink
Fix cppcheck errors (ros-simulation#1123)
Browse files Browse the repository at this point in the history
cppcheck 1.90 complains about syntax errors even though it is valid C++ code.
This refactoring fixes the reported errors.

Signed-off-by: Jacob Perron <[email protected]>
  • Loading branch information
jacobperron authored Jun 16, 2020
1 parent 7cc3a70 commit c40be68
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gazebo_plugins/test/test_gazebo_ros_camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ INSTANTIATE_TEST_CASE_P(
GazeboRosCamera, GazeboRosCameraTest, ::testing::Values(
TestParams({"worlds/gazebo_ros_camera.world", "test_cam/camera/image_test"}),
TestParams({"worlds/gazebo_ros_camera_16bit.world", "test_cam_16bit/image_test_16bit"})
), );
));

int main(int argc, char ** argv)
{
Expand Down
2 changes: 1 addition & 1 deletion gazebo_plugins/test/test_gazebo_ros_camera_distortion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ INSTANTIATE_TEST_CASE_P(
"undistorted_image",
"distorted_image",
"distorted_info"})
), );
));

int main(int argc, char ** argv)
{
Expand Down
2 changes: 1 addition & 1 deletion gazebo_plugins/test/test_gazebo_ros_depth_camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ INSTANTIATE_TEST_CASE_P(
"test_cam/camera/raw_image_test",
"test_cam/camera/depth_image_test",
"test_cam/camera/points_test"})
), );
));

int main(int argc, char ** argv)
{
Expand Down
2 changes: 1 addition & 1 deletion gazebo_plugins/test/test_gazebo_ros_diff_drive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ INSTANTIATE_TEST_CASE_P(
GazeboRosDiffDrive, GazeboRosDiffDriveTest, ::testing::Values(
TestParams({"worlds/gazebo_ros_diff_drive.world"}),
TestParams({"worlds/gazebo_ros_skid_steer_drive.world"})
), );
));

int main(int argc, char ** argv)
{
Expand Down
2 changes: 1 addition & 1 deletion gazebo_plugins/test/test_gazebo_ros_multicamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ INSTANTIATE_TEST_CASE_P(
{"worlds/gazebo_ros_multicamera.world",
"test_cam/camera/left/image_test",
"test_cam/camera/right/image_test"})
), );
));

int main(int argc, char ** argv)
{
Expand Down

0 comments on commit c40be68

Please sign in to comment.