From 84ce499a0dbe8b607735bda196fd5fc29f263061 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Mon, 11 Jul 2016 22:11:34 -0700 Subject: [PATCH] AP_Baro: remove zero-init in constructor --- libraries/AP_Baro/AP_Baro.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/libraries/AP_Baro/AP_Baro.cpp b/libraries/AP_Baro/AP_Baro.cpp index 1dd8672d55..2e485bcf74 100644 --- a/libraries/AP_Baro/AP_Baro.cpp +++ b/libraries/AP_Baro/AP_Baro.cpp @@ -80,18 +80,8 @@ const AP_Param::GroupInfo AP_Baro::var_info[] = { /* AP_Baro constructor */ -AP_Baro::AP_Baro() : - _num_drivers(0), - _num_sensors(0), - _primary(0), - _last_altitude_EAS2TAS(0.0f), - _EAS2TAS(0.0f), - _external_temperature(0.0f), - _last_external_temperature_ms(0), - _hil_mode(false) +AP_Baro::AP_Baro() { - memset(sensors, 0, sizeof(sensors)); - AP_Param::setup_object_defaults(this, var_info); }