diff options
author | Chris Robinson <[email protected]> | 2018-11-11 20:40:37 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-11 20:40:37 -0800 |
commit | 5848dab92d3172ea2f50e0d82f9628fb20c62bd9 (patch) | |
tree | 35923bb0c224580d5d7b974d05550af04e9df983 /Alc | |
parent | f8bda31c72e073cfc36cc4b42574347657817c54 (diff) |
Make AmbDecConf::load noexcept
To ease the ovewrhead of destructors that call C (non-noexcept) functions.
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ambdec.cpp | 2 | ||||
-rw-r--r-- | Alc/ambdec.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ambdec.cpp b/Alc/ambdec.cpp index b3978551..c408a2af 100644 --- a/Alc/ambdec.cpp +++ b/Alc/ambdec.cpp @@ -202,7 +202,7 @@ bool load_ambdec_matrix(ALfloat *gains, ALfloat (*matrix)[MAX_AMBI_COEFFS], ALsi } // namespace -int AmbDecConf::load(const char *fname) +int AmbDecConf::load(const char *fname) noexcept { al::ifstream f{fname}; if(!f.is_open()) diff --git a/Alc/ambdec.h b/Alc/ambdec.h index d6d154fb..33e74d36 100644 --- a/Alc/ambdec.h +++ b/Alc/ambdec.h @@ -39,7 +39,7 @@ struct AmbDecConf { ALfloat HFOrderGain[MAX_AMBI_ORDER+1]; ALfloat HFMatrix[MAX_OUTPUT_CHANNELS][MAX_AMBI_COEFFS]; - int load(const char *fname); + int load(const char *fname) noexcept; }; #endif /* AMBDEC_H */ |