remove std::make_pair
make_pair is an old C++98 function that can be replaced by modern shorter constructs. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -450,10 +450,9 @@ AlsaOutput::GetAttributes() const noexcept
|
||||
const std::lock_guard<Mutex> lock(attributes_mutex);
|
||||
|
||||
return {
|
||||
std::make_pair("allowed_formats",
|
||||
Alsa::ToString(allowed_formats)),
|
||||
{"allowed_formats", Alsa::ToString(allowed_formats)},
|
||||
#ifdef ENABLE_DSD
|
||||
std::make_pair("dop", dop_setting ? "1" : "0"),
|
||||
{"dop", dop_setting ? "1" : "0"},
|
||||
#endif
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user