aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-01 18:13:33 -0800
committerChris Robinson <[email protected]>2019-01-01 18:13:33 -0800
commit399dfca1e3352050a5289be6bcd7b7dce353ccf8 (patch)
treed6b610e1df68363dad9d11ddcf59830f5c12894b /Alc/alc.cpp
parent1630a33567b155718b7cb984badb378b140f0889 (diff)
Rename ALCdevice_struct and ALCcontext_struct
A (possibly contentious?) change in the public headers. Those names were never part of any specification, and I don't know why the struct names differed from the actual type name. But with C++, which takes the original struct declaration as the original name, it was affecting the type's internal symbols. This shouldn't affect user code since ALCdevice_struct and ALCcontext_struct were never part of the spec. If issues arise from this change, it should be reported.
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index b69c4756..a8288acb 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -2189,17 +2189,16 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
}
-ALCdevice_struct::ALCdevice_struct(DeviceType type)
- : Type{type}
+ALCdevice::ALCdevice(DeviceType type) : Type{type}
{
}
-/* ALCdevice_struct::~ALCdevice_struct
+/* ALCdevice::~ALCdevice
*
* Frees the device structure, and destroys any objects the app failed to
* delete. Called once there's no more references on the device.
*/
-ALCdevice_struct::~ALCdevice_struct()
+ALCdevice::~ALCdevice()
{
TRACE("%p\n", this);
@@ -2311,8 +2310,7 @@ static DeviceRef VerifyDevice(ALCdevice *device)
}
-ALCcontext_struct::ALCcontext_struct(ALCdevice *device)
- : Device{device}
+ALCcontext::ALCcontext(ALCdevice *device) : Device{device}
{
}
@@ -2373,12 +2371,12 @@ static ALvoid InitContext(ALCcontext *Context)
}
-/* ALCcontext_struct::~ALCcontext_struct()
+/* ALCcontext::~ALCcontext()
*
* Cleans up the context, and destroys any remaining objects the app failed to
* delete. Called once there's no more references on the context.
*/
-ALCcontext_struct::~ALCcontext_struct()
+ALCcontext::~ALCcontext()
{
TRACE("%p\n", this);