From e467f17501f48a28228eca08db10e9db4cd91c39 Mon Sep 17 00:00:00 2001 From: gxalpha Date: Sun, 12 Mar 2023 03:01:31 +0100 Subject: [PATCH] UI: Replace SIGNAL and SLOT macros in obs-app --- UI/obs-app.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/obs-app.cpp b/UI/obs-app.cpp index 4e5ffdf2e..1713b0269 100644 --- a/UI/obs-app.cpp +++ b/UI/obs-app.cpp @@ -1403,8 +1403,8 @@ OBSApp::OBSApp(int &argc, char **argv, profiler_name_store_t *store) /* Handle SIGINT properly */ socketpair(AF_UNIX, SOCK_STREAM, 0, sigintFd); snInt = new QSocketNotifier(sigintFd[1], QSocketNotifier::Read, this); - connect(snInt, SIGNAL(activated(QSocketDescriptor)), this, - SLOT(ProcessSigInt())); + connect(snInt, &QSocketNotifier::activated, this, + &OBSApp::ProcessSigInt); #endif sleepInhibitor = os_inhibit_sleep_create("OBS Video/audio"); @@ -1720,7 +1720,7 @@ bool OBSApp::OBSInit() mainWindow = new OBSBasic(); mainWindow->setAttribute(Qt::WA_DeleteOnClose, true); - connect(mainWindow, SIGNAL(destroyed()), this, SLOT(quit())); + connect(mainWindow, &OBSBasic::destroyed, this, &OBSApp::quit); mainWindow->OBSInit();