diff options
author | tina.legrand@webrtc.org <tina.legrand@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-02-20 15:22:23 +0000 |
---|---|---|
committer | tina.legrand@webrtc.org <tina.legrand@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-02-20 15:22:23 +0000 |
commit | 01ee1ba3f14e512ddba1aa7b5fdd6450fb4554d3 (patch) | |
tree | 58b151de7d3c6b4b675ac53a865fc982282419ef /voice_engine/voe_codec_impl.cc | |
parent | c86dbab033af23eca99606c31f1109eff1f2a7f8 (diff) | |
download | webrtc-01ee1ba3f14e512ddba1aa7b5fdd6450fb4554d3.tar.gz |
Changing non-const reference arguments to pointers, ACM
Part of refactoring of ACM, and recent lint-warnings.
This CL changes non-const references in the ACM API to pointers.
BUG=issue1372
Review URL: https://webrtc-codereview.appspot.com/1103012
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@3543 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'voice_engine/voe_codec_impl.cc')
-rw-r--r-- | voice_engine/voe_codec_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/voice_engine/voe_codec_impl.cc b/voice_engine/voe_codec_impl.cc index 4768004a..6efa8998 100644 --- a/voice_engine/voe_codec_impl.cc +++ b/voice_engine/voe_codec_impl.cc @@ -68,7 +68,7 @@ int VoECodecImpl::GetCodec(int index, CodecInst& codec) WEBRTC_TRACE(kTraceApiCall, kTraceVoice, VoEId(_shared->instance_id(), -1), "GetCodec(index=%d, codec=?)", index); CodecInst acmCodec; - if (AudioCodingModule::Codec(index, (CodecInst&) acmCodec) + if (AudioCodingModule::Codec(index, &acmCodec) == -1) { _shared->SetLastError(VE_INVALID_LISTNR, kTraceError, |