Skip to content

Commit 30b63c6

Browse files
Warchamp7RytoEX
authored andcommitted
Update C++ files with braces
1 parent 32bf510 commit 30b63c6

259 files changed

Lines changed: 7717 additions & 4078 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

frontend/OBSApp.cpp

Lines changed: 141 additions & 73 deletions
Large diffs are not rendered by default.

frontend/OBSApp.hpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,20 +205,25 @@ private slots:
205205

206206
inline void IncrementSleepInhibition()
207207
{
208-
if (!sleepInhibitor)
208+
if (!sleepInhibitor) {
209209
return;
210-
if (sleepInhibitRefs++ == 0)
210+
}
211+
if (sleepInhibitRefs++ == 0) {
211212
os_inhibit_sleep_set_active(sleepInhibitor, true);
213+
}
212214
}
213215

214216
inline void DecrementSleepInhibition()
215217
{
216-
if (!sleepInhibitor)
218+
if (!sleepInhibitor) {
217219
return;
218-
if (sleepInhibitRefs == 0)
220+
}
221+
if (sleepInhibitRefs == 0) {
219222
return;
220-
if (--sleepInhibitRefs == 0)
223+
}
224+
if (--sleepInhibitRefs == 0) {
221225
os_inhibit_sleep_set_active(sleepInhibitor, false);
226+
}
222227
}
223228

224229
inline void PushUITranslation(obs_frontend_translate_ui_cb cb) { translatorHooks.emplace_front(cb); }

0 commit comments

Comments
 (0)