aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-01 14:33:01 -0800
committerChris Robinson <[email protected]>2019-01-01 14:33:01 -0800
commit2f1566e0b4e71f9b03ae8081e81a85f52ddeab23 (patch)
treee16fee5e76b8c1b581f3003d487d711cb29ce9de /Alc/hrtf.cpp
parentc36798fd0759331caac80bb16cebe6c19a646090 (diff)
Add and use a make_unique function
Diffstat (limited to 'Alc/hrtf.cpp')
-rw-r--r--Alc/hrtf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/hrtf.cpp b/Alc/hrtf.cpp
index 1995119a..2cdabc2a 100644
--- a/Alc/hrtf.cpp
+++ b/Alc/hrtf.cpp
@@ -1198,14 +1198,14 @@ HrtfEntry *GetLoadedHrtf(HrtfHandle *handle)
ERR("Could not get resource %u, %s\n", residx, name);
return nullptr;
}
- stream.reset(new idstream{res.data, res.data+res.size});
+ stream = al::make_unique<idstream>(res.data, res.data+res.size);
}
else
{
name = handle->filename;
TRACE("Loading %s...\n", handle->filename);
- std::unique_ptr<al::ifstream> fstr{new al::ifstream{handle->filename, std::ios::binary}};
+ auto fstr = al::make_unique<al::ifstream>(handle->filename, std::ios::binary);
if(!fstr->is_open())
{
ERR("Could not open %s\n", handle->filename);