diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2014-03-03 06:25:15 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2014-03-09 21:11:59 +0100 |
| commit | c89f04a7c5256d92b75e9868df9af6cfb7050559 (patch) | |
| tree | 8f919105c3f8701a54edc7ef403f268f41061a63 /Source/Core/AudioCommon/OpenALStream.cpp | |
| parent | f4012638672472afdbd9956229f273a18a77fd77 (diff) | |
clang-modernize -loop-convert
and some manual adjustments
Diffstat (limited to 'Source/Core/AudioCommon/OpenALStream.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/OpenALStream.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp index b12ee66922..99aebc6d05 100644 --- a/Source/Core/AudioCommon/OpenALStream.cpp +++ b/Source/Core/AudioCommon/OpenALStream.cpp @@ -17,10 +17,10 @@ bool OpenALStream::Start() { bool bReturn = false; - ALDeviceList *pDeviceList = new ALDeviceList(); - if ((pDeviceList) && (pDeviceList->GetNumDevices())) + ALDeviceList pDeviceList; + if (pDeviceList.GetNumDevices()) { - char *defDevName = pDeviceList->GetDeviceName(pDeviceList->GetDefaultDevice()); + char *defDevName = pDeviceList.GetDeviceName(pDeviceList.GetDefaultDevice()); WARN_LOG(AUDIO, "Found OpenAL device %s", defDevName); @@ -49,7 +49,6 @@ bool OpenALStream::Start() { PanicAlertT("OpenAL: can't open device %s", defDevName); } - delete pDeviceList; } else { |
