fixed cppcheck warnings

This commit is contained in:
badaix 2016-01-30 14:39:20 +01:00
parent 08c35ccc62
commit 0c87becca0
6 changed files with 17 additions and 17 deletions

View file

@ -39,11 +39,10 @@ PcmDevice getPcmDevice(const std::string& soundcard)
{
#ifndef ANDROID
vector<PcmDevice> pcmDevices = AlsaPlayer::pcm_list();
int soundcardIdx = -1;
try
{
soundcardIdx = std::stoi(soundcard);
int soundcardIdx = std::stoi(soundcard);
for (auto dev: pcmDevices)
if (dev.idx == soundcardIdx)
return dev;