mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
UI: Clean up code styling of ternary operator usage
This commit is contained in:
parent
69ffce3479
commit
cc1db3a944
@ -5152,9 +5152,10 @@ void OBSBasic::StreamingStop(int code, QString last_error)
|
||||
void OBSBasic::AutoRemux()
|
||||
{
|
||||
const char *mode = config_get_string(basicConfig, "Output", "Mode");
|
||||
const char *path = strcmp(mode, "Advanced") ?
|
||||
config_get_string(basicConfig, "SimpleOutput", "FilePath") :
|
||||
config_get_string(basicConfig, "AdvOut", "RecFilePath");
|
||||
const char *path = strcmp(mode, "Advanced") != 0
|
||||
? config_get_string(basicConfig, "SimpleOutput", "FilePath")
|
||||
: config_get_string(basicConfig, "AdvOut", "RecFilePath");
|
||||
|
||||
std::string s(path);
|
||||
s += "/";
|
||||
s += remuxFilename;
|
||||
|
Loading…
Reference in New Issue
Block a user