mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-27 23:56:12 -04:00
UI: Use C++11 ranged-for instead of Q_FOREACH
Qt has been porting uses of Q_FOREACH/foreach to C++11's ranged-for. Let's do the same. References: * https://doc.qt.io/qt-6/foreach-keyword.html * https://codereview.qt-project.org/q/Q_FOREACH
This commit is contained in:
@@ -10882,9 +10882,11 @@ void OBSBasic::CheckDiskSpaceRemaining()
|
||||
|
||||
void OBSBasic::ResetStatsHotkey()
|
||||
{
|
||||
QList<OBSBasicStats *> list = findChildren<OBSBasicStats *>();
|
||||
const QList<OBSBasicStats *> list = findChildren<OBSBasicStats *>();
|
||||
|
||||
foreach(OBSBasicStats * s, list) s->Reset();
|
||||
for (OBSBasicStats *s : list) {
|
||||
s->Reset();
|
||||
}
|
||||
}
|
||||
|
||||
void OBSBasic::on_OBSBasic_customContextMenuRequested(const QPoint &pos)
|
||||
|
||||
Reference in New Issue
Block a user