Browse Source

UI: Clean up code styling of ternary operator usage

jp9000 7 years ago
parent
commit
cc1db3a944
1 changed files with 4 additions and 3 deletions
  1. 4 3
      UI/window-basic-main.cpp

+ 4 - 3
UI/window-basic-main.cpp

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