Skip to content
Snippets Groups Projects
Commit 04466592 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #8968: alsalayer: use preincrement for iterators

parent 9865949d
Branches
No related tags found
No related merge requests found
...@@ -436,14 +436,12 @@ AlsaLayer::buildDeviceTopo(const std::string &plugin, int card) ...@@ -436,14 +436,12 @@ AlsaLayer::buildDeviceTopo(const std::string &plugin, int card)
std::vector<std::string> std::vector<std::string>
AlsaLayer::getAudioDeviceList(AudioStreamDirection dir) const AlsaLayer::getAudioDeviceList(AudioStreamDirection dir) const
{ {
std::vector<HwIDPair> deviceMap; std::vector<HwIDPair> deviceMap(getAudioDeviceIndexMap(dir));
std::vector<std::string> audioDeviceList;
deviceMap = getAudioDeviceIndexMap(dir);
for(std::vector<HwIDPair>::const_iterator iter = deviceMap.begin(); iter != deviceMap.end(); iter++) { std::vector<std::string> audioDeviceList;
for (std::vector<HwIDPair>::const_iterator iter = deviceMap.begin();
iter != deviceMap.end(); ++iter)
audioDeviceList.push_back(iter->second); audioDeviceList.push_back(iter->second);
}
return audioDeviceList; return audioDeviceList;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment