frontend: Use OBSBasic::Get() in all places

This reduces duplicated code when getting the OBSBasic context.
This commit is contained in:
cg2121
2025-02-05 15:15:52 -05:00
committed by Ryan Foster
parent a562b8bf52
commit 4e8b131509
25 changed files with 75 additions and 78 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ using namespace std;
static OBSData GetDataFromJsonFile(const char *jsonFile)
{
const OBSBasic *basic = reinterpret_cast<OBSBasic *>(App()->GetMainWindow());
const OBSBasic *basic = OBSBasic::Get();
const OBSProfile &currentProfile = basic->GetCurrentProfile();