summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 4860f2b..9ae66d3 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -12,7 +12,6 @@ MainWindow::~MainWindow()
}
-// Need to pass newSink as new widget's sink isn't set here yet, so always empty
SlxOutput* MainWindow::getOutput(const QString &id, bool isSink, const QString &newTitle)
{
SlxOutput* w = _widgets.value(id, nullptr);
@@ -52,6 +51,9 @@ SlxOutput* MainWindow::getOutput(const QString &id, bool isSink, const QString &
return w;
}
+/**
+ * Mark all entries as unused.
+ */
void MainWindow::mark()
{
for (auto *w : _widgets) {
@@ -59,6 +61,9 @@ void MainWindow::mark()
}
}
+/**
+ * Remove all entries marked as unused.
+ */
void MainWindow::sweep()
{
for (QMutableMapIterator<QString, SlxOutput*> it(_widgets); it.hasNext(); ) {