output/Multiple: use std::size_t

This commit is contained in:
Max Kellermann 2022-07-13 13:25:59 +02:00
parent e2040ed395
commit de1d443db1

View File

@ -82,20 +82,20 @@ public:
* those which are disabled right now. * those which are disabled right now.
*/ */
[[gnu::pure]] [[gnu::pure]]
unsigned Size() const noexcept { std::size_t Size() const noexcept {
return outputs.size(); return outputs.size();
} }
/** /**
* Returns the "i"th audio output device. * Returns the "i"th audio output device.
*/ */
const AudioOutputControl &Get(unsigned i) const noexcept { const AudioOutputControl &Get(std::size_t i) const noexcept {
assert(i < Size()); assert(i < Size());
return *outputs[i]; return *outputs[i];
} }
AudioOutputControl &Get(unsigned i) noexcept { AudioOutputControl &Get(std::size_t i) noexcept {
assert(i < Size()); assert(i < Size());
return *outputs[i]; return *outputs[i];