We no longer use compilers that can't =default move construction and assignment

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

Cr-Commit-Position: refs/heads/master@{#12376}
This commit is contained in:
kwiberg
2016-04-15 05:24:56 -07:00
committed by Commit bot
parent 01f2c5a752
commit 6ca0a31708
3 changed files with 4 additions and 26 deletions

View File

@ -37,17 +37,7 @@ std::unique_ptr<CNG_enc_inst, CngInstDeleter> CreateCngInst(
} // namespace
AudioEncoderCng::Config::Config() = default;
// TODO(kwiberg): =default this when Visual Studio learns to handle it.
AudioEncoderCng::Config::Config(Config&& c)
: num_channels(c.num_channels),
payload_type(c.payload_type),
speech_encoder(std::move(c.speech_encoder)),
vad_mode(c.vad_mode),
sid_frame_interval_ms(c.sid_frame_interval_ms),
num_cng_coefficients(c.num_cng_coefficients),
vad(c.vad) {}
AudioEncoderCng::Config::Config(Config&&) = default;
AudioEncoderCng::Config::~Config() = default;
bool AudioEncoderCng::Config::IsOk() const {

View File

@ -19,12 +19,7 @@
namespace webrtc {
AudioEncoderCopyRed::Config::Config() = default;
// TODO(kwiberg): =default this when Visual Studio learns to handle it.
AudioEncoderCopyRed::Config::Config(Config&& c)
: payload_type(c.payload_type),
speech_encoder(std::move(c.speech_encoder)) {}
AudioEncoderCopyRed::Config::Config(Config&&) = default;
AudioEncoderCopyRed::Config::~Config() = default;
AudioEncoderCopyRed::AudioEncoderCopyRed(Config&& config)