mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 05:01:51 -04:00
clang-format: Apply formatting
Code submissions have continually suffered from formatting inconsistencies that constantly have to be addressed. Using clang-format simplifies this by making code formatting more consistent, and allows automation of the code formatting so that maintainers can focus more on the code itself instead of code formatting.
This commit is contained in:
1 parent
53615ee10f
commit
f53df7da64
567 files changed
+34068
-32903
No files matched your search
@@ -30,7 +30,7 @@
|
||||
struct QCef;
|
||||
struct QCefCookieManager;
|
||||
|
||||
extern QCef *cef;
|
||||
extern QCef *cef;
|
||||
extern QCefCookieManager *panel_cookies;
|
||||
|
||||
static std::string GenId()
|
||||
@@ -52,7 +52,8 @@ void CheckExistingCookieId()
|
||||
if (config_has_user_value(main->Config(), "Panels", "CookieId"))
|
||||
return;
|
||||
|
||||
config_set_string(main->Config(), "Panels", "CookieId", GenId().c_str());
|
||||
config_set_string(main->Config(), "Panels", "CookieId",
|
||||
GenId().c_str());
|
||||
}
|
||||
|
||||
#ifdef BROWSER_AVAILABLE
|
||||
@@ -66,8 +67,8 @@ static void InitPanelCookieManager()
|
||||
CheckExistingCookieId();
|
||||
|
||||
OBSBasic *main = OBSBasic::Get();
|
||||
const char *cookie_id = config_get_string(main->Config(),
|
||||
"Panels", "CookieId");
|
||||
const char *cookie_id =
|
||||
config_get_string(main->Config(), "Panels", "CookieId");
|
||||
|
||||
std::string sub_path;
|
||||
sub_path += "obs_profile_cookies/";
|
||||
@@ -102,8 +103,8 @@ void DuplicateCurrentCookieProfile(ConfigFile &config)
|
||||
#ifdef BROWSER_AVAILABLE
|
||||
if (cef) {
|
||||
OBSBasic *main = OBSBasic::Get();
|
||||
std::string cookie_id = config_get_string(main->Config(),
|
||||
"Panels", "CookieId");
|
||||
std::string cookie_id =
|
||||
config_get_string(main->Config(), "Panels", "CookieId");
|
||||
|
||||
std::string src_path;
|
||||
src_path += "obs_profile_cookies/";
|
||||
@@ -136,9 +137,9 @@ void DuplicateCurrentCookieProfile(ConfigFile &config)
|
||||
}
|
||||
|
||||
config_set_string(config, "Panels", "CookieId",
|
||||
cookie_id.c_str());
|
||||
cookie_id.c_str());
|
||||
config_set_string(main->Config(), "Panels", "CookieId",
|
||||
new_id.c_str());
|
||||
new_id.c_str());
|
||||
}
|
||||
#else
|
||||
UNUSED_PARAMETER(config);
|
||||
@@ -155,10 +156,9 @@ void OBSBasic::InitBrowserPanelSafeBlock()
|
||||
return;
|
||||
}
|
||||
|
||||
ExecThreadedWithoutBlocking(
|
||||
[] {cef->wait_for_browser_init();},
|
||||
QTStr("BrowserPanelInit.Title"),
|
||||
QTStr("BrowserPanelInit.Text"));
|
||||
ExecThreadedWithoutBlocking([] { cef->wait_for_browser_init(); },
|
||||
QTStr("BrowserPanelInit.Title"),
|
||||
QTStr("BrowserPanelInit.Text"));
|
||||
InitPanelCookieManager();
|
||||
#endif
|
||||
}
|
||||
Reference in new issue
Block a user