From b9e5a3d589349ee55e41cb54eca4ec822018f5c5 Mon Sep 17 00:00:00 2001 From: "tommi@webrtc.org" Date: Fri, 15 Feb 2013 15:07:32 +0000 Subject: 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 --- voice_engine/voe_audio_processing_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'voice_engine/voe_audio_processing_impl.cc') 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(voiceEngine); + VoiceEngineImpl* s = static_cast(voiceEngine); s->AddRef(); return s; #endif -- cgit v1.2.3