mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
UI: Replace uses of token-pasting operator
This commit is contained in:
parent
19b6d79597
commit
60844505d0
|
@ -25,8 +25,8 @@ public:
|
|||
|
||||
typedef std::function<void(const std::string &)> captions_cb;
|
||||
|
||||
#define captions_error(s) std::string(obs_module_text("Captions.Error."##s))
|
||||
#define CAPTIONS_ERROR_GENERIC_FAIL captions_error("GenericFail")
|
||||
#define CAPTIONS_ERROR_GENERIC_FAIL \
|
||||
std::string(obs_module_text("Captions.Error.GenericFail"))
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
|
|
|
@ -603,20 +603,21 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
|
|||
ui->hideOBSFromCapture = nullptr;
|
||||
}
|
||||
|
||||
#define PROCESS_PRIORITY(val) \
|
||||
{ \
|
||||
"Basic.Settings.Advanced.General.ProcessPriority."##val, val \
|
||||
}
|
||||
|
||||
static struct ProcessPriority {
|
||||
const char *name;
|
||||
const char *val;
|
||||
} processPriorities[] = {PROCESS_PRIORITY("High"),
|
||||
PROCESS_PRIORITY("AboveNormal"),
|
||||
PROCESS_PRIORITY("Normal"),
|
||||
PROCESS_PRIORITY("BelowNormal"),
|
||||
PROCESS_PRIORITY("Idle")};
|
||||
#undef PROCESS_PRIORITY
|
||||
} processPriorities[] = {
|
||||
{"Basic.Settings.Advanced.General.ProcessPriority.High",
|
||||
"High"},
|
||||
{"Basic.Settings.Advanced.General.ProcessPriority.AboveNormal",
|
||||
"AboveNormal"},
|
||||
{"Basic.Settings.Advanced.General.ProcessPriority.Normal",
|
||||
"Normal"},
|
||||
{"Basic.Settings.Advanced.General.ProcessPriority.BelowNormal",
|
||||
"BelowNormal"},
|
||||
{"Basic.Settings.Advanced.General.ProcessPriority.Idle",
|
||||
"Idle"},
|
||||
};
|
||||
|
||||
for (ProcessPriority pri : processPriorities)
|
||||
ui->processPriority->addItem(QTStr(pri.name), pri.val);
|
||||
|
|
Loading…
Reference in a new issue