diff options
author | tommi@webrtc.org <tommi@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-02-15 15:07:32 +0000 |
---|---|---|
committer | tommi@webrtc.org <tommi@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2013-02-15 15:07:32 +0000 |
commit | b9e5a3d589349ee55e41cb54eca4ec822018f5c5 (patch) | |
tree | fafc67d55c5277257678501ef63cd23e1ae14ec4 /voice_engine/voe_audio_processing_impl.cc | |
parent | 4e91d4a457f13f2e4f1647e8b5277b08972b854f (diff) | |
download | webrtc-b9e5a3d589349ee55e41cb54eca4ec822018f5c5.tar.gz |
Make VoiceEngineImpl inherit from VoiceEngine.
This associates the two types instead of incorrectly reinterpret casting
VoiceEngineImpl* to VoiceEngine* (since these types were previously unrelated).
Please see more details in the bug for how this is currently causing problems
with security tools.
BUG=38612
Review URL: https://webrtc-codereview.appspot.com/1099013
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@3520 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'voice_engine/voe_audio_processing_impl.cc')
-rw-r--r-- | voice_engine/voe_audio_processing_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/voice_engine/voe_audio_processing_impl.cc b/voice_engine/voe_audio_processing_impl.cc index 9397bfaf..a9780f27 100644 --- a/voice_engine/voe_audio_processing_impl.cc +++ b/voice_engine/voe_audio_processing_impl.cc @@ -51,7 +51,7 @@ VoEAudioProcessing* VoEAudioProcessing::GetInterface(VoiceEngine* voiceEngine) { if (NULL == voiceEngine) { return NULL; } - VoiceEngineImpl* s = reinterpret_cast<VoiceEngineImpl*>(voiceEngine); + VoiceEngineImpl* s = static_cast<VoiceEngineImpl*>(voiceEngine); s->AddRef(); return s; #endif |