audio_device: Mark member functions as const where applicable
These member functions don't modify any internal state.
This commit is contained in:
parent
1c7dae966d
commit
d55046c5e9
3 changed files with 10 additions and 10 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue