0
0
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:
jp9000 2019-02-19 16:07:58 -08:00
parent 69ffce3479
commit cc1db3a944

View File

@ -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;