summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/OpenALStream.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2014-03-03 06:25:15 +0100
committerTillmann Karras <tilkax@gmail.com>2014-03-09 21:11:59 +0100
commitc89f04a7c5256d92b75e9868df9af6cfb7050559 (patch)
tree8f919105c3f8701a54edc7ef403f268f41061a63 /Source/Core/AudioCommon/OpenALStream.cpp
parentf4012638672472afdbd9956229f273a18a77fd77 (diff)
clang-modernize -loop-convert
and some manual adjustments
Diffstat (limited to 'Source/Core/AudioCommon/OpenALStream.cpp')
-rw-r--r--Source/Core/AudioCommon/OpenALStream.cpp7
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
{