clang-tidy: mark a bunch of variables constexpr
Found with cppcoreguidelines-interfaces-global-init Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -1181,7 +1181,7 @@ try {
|
||||
LockCaughtError();
|
||||
}
|
||||
|
||||
const struct AudioOutputPlugin alsa_output_plugin = {
|
||||
constexpr struct AudioOutputPlugin alsa_output_plugin = {
|
||||
"alsa",
|
||||
alsa_test_default_device,
|
||||
&AlsaOutput::Create,
|
||||
|
||||
@@ -913,7 +913,7 @@ pulse_output_test_default_device()
|
||||
return PulseOutput::TestDefaultDevice();
|
||||
}
|
||||
|
||||
const struct AudioOutputPlugin pulse_output_plugin = {
|
||||
constexpr struct AudioOutputPlugin pulse_output_plugin = {
|
||||
"pulse",
|
||||
pulse_output_test_default_device,
|
||||
PulseOutput::Create,
|
||||
|
||||
Reference in New Issue
Block a user