audio_processing: DestroyHandle() now returns void

The return value was not used anyhow and there is no proper action to be taken if we would have received an error. Hence, in line with issue441 we should return void upon free.

BUG=441
TESTED=trybots,modules_unittest
R=andrew@webrtc.org, aluebs@webrtc.org, kwiberg@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/12269004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5949 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
bjornv@webrtc.org
2014-04-22 06:52:28 +00:00
parent 2a796720f8
commit 5964fe0f86
15 changed files with 20 additions and 23 deletions

View File

@ -163,9 +163,8 @@ void* VoiceDetectionImpl::CreateHandle() const {
return handle;
}
int VoiceDetectionImpl::DestroyHandle(void* handle) const {
void VoiceDetectionImpl::DestroyHandle(void* handle) const {
WebRtcVad_Free(static_cast<Handle*>(handle));
return apm_->kNoError;
}
int VoiceDetectionImpl::InitializeHandle(void* handle) const {