henrike@webrtc.org | 66a3582 | 2014-08-26 22:04:04 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2004 The WebRTC Project Authors. All rights reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #include "webrtc/sound/soundsysteminterface.h" |
| 12 | |
| 13 | #include "webrtc/sound/sounddevicelocator.h" |
| 14 | |
| 15 | namespace rtc { |
| 16 | |
| 17 | void SoundSystemInterface::ClearSoundDeviceLocatorList( |
| 18 | SoundSystemInterface::SoundDeviceLocatorList *devices) { |
| 19 | for (SoundDeviceLocatorList::iterator i = devices->begin(); |
| 20 | i != devices->end(); |
| 21 | ++i) { |
| 22 | if (*i) { |
| 23 | delete *i; |
| 24 | } |
| 25 | } |
| 26 | devices->clear(); |
| 27 | } |
| 28 | |
| 29 | } // namespace rtc |