Skip to content

Commit a267ce6

Browse files
committed
GUI: Try to use std::format
Check to see if it compiles everywhere without issues before using it more widely.
1 parent b4864b1 commit a267ce6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gui/QT/option/audio_opts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ std::vector<SettingItem> getAudioPlayback(AvailableSettings *availSettings){
3535

3636
for(const auto &i : availSettings->getDevices(AUDIO_PLAYBACK)){
3737
SettingItem item;
38-
item.name = i.type + ": " + i.name;
38+
item.name = std::format("{}: {}", i.type, i.name);
3939
item.opts.push_back({optStr, i.type});
4040
item.opts.push_back({optStr + "." + i.type + ".device", i.deviceOpt});
4141
auto embedAudioIt = i.extra.find("isEmbeddedAudio");

0 commit comments

Comments
 (0)