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) <eduardo.lima@intel.com>

Review URL: https://codereview.webrtc.org/1222233002

Cr-Commit-Position: refs/heads/master@{#9538}
This commit is contained in:
eblima
2015-07-03 08:34:33 -07:00
committed by Commit bot
parent ac8869ec5a
commit 894ad94302
2 changed files with 7 additions and 3 deletions

View File

@ -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<Point>& array_geometry)
: enabled(enabled),
array_geometry(array_geometry) {}

View File

@ -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();
}