diff options
author | Chris Robinson <[email protected]> | 2018-11-24 16:58:49 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-24 16:58:49 -0800 |
commit | 9e10f632c7a5d66b0f896753e197970eec3ab7cf (patch) | |
tree | e8370fd4a8ebffa3fc110aaffe4aab218ac284ec /Alc/backends/dsound.cpp | |
parent | 16a60dc371254ba4936f4f5c13c32d060b9911ac (diff) |
Replace remaining uses of std::vector with al::vector
Which uses a custom allocator that uses our allocation functions.
Diffstat (limited to 'Alc/backends/dsound.cpp')
-rw-r--r-- | Alc/backends/dsound.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/backends/dsound.cpp b/Alc/backends/dsound.cpp index 085dab90..4f1186ee 100644 --- a/Alc/backends/dsound.cpp +++ b/Alc/backends/dsound.cpp @@ -142,10 +142,10 @@ struct DevMap { { } }; -std::vector<DevMap> PlaybackDevices; -std::vector<DevMap> CaptureDevices; +al::vector<DevMap> PlaybackDevices; +al::vector<DevMap> CaptureDevices; -bool checkName(const std::vector<DevMap> &list, const std::string &name) +bool checkName(const al::vector<DevMap> &list, const std::string &name) { return std::find_if(list.cbegin(), list.cend(), [&name](const DevMap &entry) -> bool @@ -158,7 +158,7 @@ BOOL CALLBACK DSoundEnumDevices(GUID *guid, const WCHAR *desc, const WCHAR* UNUS if(!guid) return TRUE; - auto& devices = *reinterpret_cast<std::vector<DevMap>*>(data); + auto& devices = *reinterpret_cast<al::vector<DevMap>*>(data); const std::string basename{DEVNAME_HEAD + wstr_to_utf8(desc)}; int count{1}; |