From 894ad94302d311fd3f193080dd881a1a3439dbe3 Mon Sep 17 00:00:00 2001 From: eblima Date: Fri, 3 Jul 2015 08:34:33 -0700 Subject: [PATCH] Fix occurrences of const typed declaration without initialization This fixes compilation errors as the following: error: constructor must explicitly initialize the const member BUG=506663 R=aluebs@webrtc.org, tommi@webrtc.org Signed-off-by: Eduardo Lima (Etrunko) Review URL: https://codereview.webrtc.org/1222233002 Cr-Commit-Position: refs/heads/master@{#9538} --- webrtc/modules/audio_processing/include/audio_processing.h | 4 +++- webrtc/p2p/client/basicportallocator.cc | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/webrtc/modules/audio_processing/include/audio_processing.h b/webrtc/modules/audio_processing/include/audio_processing.h index 37699b7256..9affbdd107 100644 --- a/webrtc/modules/audio_processing/include/audio_processing.h +++ b/webrtc/modules/audio_processing/include/audio_processing.h @@ -103,7 +103,9 @@ struct ExperimentalNs { // Use to enable beamforming. Must be provided through the constructor. It will // have no impact if used with AudioProcessing::SetExtraOptions(). struct Beamforming { - Beamforming() : enabled(false) {} + Beamforming() + : enabled(false), + array_geometry() {} Beamforming(bool enabled, const std::vector& array_geometry) : enabled(enabled), array_geometry(array_geometry) {} diff --git a/webrtc/p2p/client/basicportallocator.cc b/webrtc/p2p/client/basicportallocator.cc index 41edd85e9e..bdafe35eab 100644 --- a/webrtc/p2p/client/basicportallocator.cc +++ b/webrtc/p2p/client/basicportallocator.cc @@ -152,7 +152,8 @@ BasicPortAllocator::BasicPortAllocator( rtc::NetworkManager* network_manager, rtc::PacketSocketFactory* socket_factory) : network_manager_(network_manager), - socket_factory_(socket_factory) { + socket_factory_(socket_factory), + stun_servers_() { ASSERT(socket_factory_ != NULL); Construct(); } @@ -160,7 +161,8 @@ BasicPortAllocator::BasicPortAllocator( BasicPortAllocator::BasicPortAllocator( rtc::NetworkManager* network_manager) : network_manager_(network_manager), - socket_factory_(NULL) { + socket_factory_(NULL), + stun_servers_() { Construct(); }