diff options
| author | Lioncash <mathew1800@gmail.com> | 2022-09-15 09:06:14 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2022-09-15 09:06:17 -0400 |
| commit | d55046c5e97d2dc0a55d175e1101122d646ad540 (patch) | |
| tree | e17f07f85ba29a883bbb126ca7f42a8801c97ada /src/core | |
| parent | 1c7dae966d52287ba5812c27d2fe0c59938aa416 (diff) | |
audio_device: Mark member functions as const where applicable
These member functions don't modify any internal state.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hle/service/audio/audren_u.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/audio/audren_u.cpp b/src/core/hle/service/audio/audren_u.cpp index bc69117c6..6fb07c37d 100644 --- a/src/core/hle/service/audio/audren_u.cpp +++ b/src/core/hle/service/audio/audren_u.cpp @@ -252,7 +252,7 @@ private: std::vector<AudioDevice::AudioDeviceName> out_names{}; - u32 out_count = impl->ListAudioDeviceName(out_names, in_count); + const u32 out_count = impl->ListAudioDeviceName(out_names, in_count); std::string out{}; for (u32 i = 0; i < out_count; i++) { @@ -365,7 +365,7 @@ private: std::vector<AudioDevice::AudioDeviceName> out_names{}; - u32 out_count = impl->ListAudioOutputDeviceName(out_names, in_count); + const u32 out_count = impl->ListAudioOutputDeviceName(out_names, in_count); std::string out{}; for (u32 i = 0; i < out_count; i++) { |
