aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcontext.h
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/alcontext.h
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/alcontext.h')
-rw-r--r--Alc/alcontext.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/alcontext.h b/Alc/alcontext.h
index f843809b..77ba8910 100644
--- a/Alc/alcontext.h
+++ b/Alc/alcontext.h
@@ -61,7 +61,7 @@ struct SourceSubList {
*/
using ALeffectslotPtr = std::unique_ptr<ALeffectslot>;
-struct ALCcontext_struct {
+struct ALCcontext {
RefCount ref{1u};
al::vector<SourceSubList> SourceList;
@@ -129,10 +129,10 @@ struct ALCcontext_struct {
ALlistener Listener{};
- ALCcontext_struct(ALCdevice *device);
- ALCcontext_struct(const ALCcontext_struct&) = delete;
- ALCcontext_struct& operator=(const ALCcontext_struct&) = delete;
- ~ALCcontext_struct();
+ ALCcontext(ALCdevice *device);
+ ALCcontext(const ALCcontext&) = delete;
+ ALCcontext& operator=(const ALCcontext&) = delete;
+ ~ALCcontext();
DEF_NEWDEL(ALCcontext)
};