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

This reduces duplicated code when getting the OBSBasic context.
This commit is contained in:
cg2121
2025-01-25 20:21:42 -06:00
committed by Ryan Foster
parent a562b8bf52
commit 4e8b131509
25 changed files with 75 additions and 78 deletions

View File

@@ -33,7 +33,7 @@ OBSBasicAdvAudio::OBSBasicAdvAudio(QWidget *parent) : QDialog(parent), ui(new Ui
OBSBasicAdvAudio::~OBSBasicAdvAudio()
{
OBSBasic *main = reinterpret_cast<OBSBasic *>(parent());
OBSBasic *main = OBSBasic::Get();
for (size_t i = 0; i < controls.size(); ++i)
delete controls[i];