mainwindow: Compact iterator decls
This commit is contained in:
parent
9fe20201f2
commit
95e48d5c9e
|
@ -917,31 +917,18 @@ void MainWindow::removeClient(uint32_t index) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::removeAllWidgets() {
|
void MainWindow::removeAllWidgets() {
|
||||||
{
|
for (std::map<uint32_t, SinkInputWidget*>::iterator it = sinkInputWidgets.begin(); it != sinkInputWidgets.end(); ++it)
|
||||||
std::map<uint32_t, SinkInputWidget*>::iterator it;
|
|
||||||
for (it = sinkInputWidgets.begin(); it != sinkInputWidgets.end(); ++it)
|
|
||||||
removeSinkInput(it->first);
|
removeSinkInput(it->first);
|
||||||
}{
|
for (std::map<uint32_t, SourceOutputWidget*>::iterator it = sourceOutputWidgets.begin(); it != sourceOutputWidgets.end(); ++it)
|
||||||
std::map<uint32_t, SourceOutputWidget*>::iterator it;
|
|
||||||
for (it = sourceOutputWidgets.begin(); it != sourceOutputWidgets.end(); ++it)
|
|
||||||
removeSourceOutput(it->first);
|
removeSourceOutput(it->first);
|
||||||
}{
|
for (std::map<uint32_t, SinkWidget*>::iterator it = sinkWidgets.begin(); it != sinkWidgets.end(); ++it)
|
||||||
std::map<uint32_t, SinkWidget*>::iterator it;
|
|
||||||
for (it = sinkWidgets.begin(); it != sinkWidgets.end(); ++it)
|
|
||||||
removeSink(it->first);
|
removeSink(it->first);
|
||||||
}{
|
for (std::map<uint32_t, SourceWidget*>::iterator it = sourceWidgets.begin(); it != sourceWidgets.end(); ++it)
|
||||||
std::map<uint32_t, SourceWidget*>::iterator it;
|
|
||||||
for (it = sourceWidgets.begin(); it != sourceWidgets.end(); ++it)
|
|
||||||
removeSource(it->first);
|
removeSource(it->first);
|
||||||
}{
|
for (std::map<uint32_t, CardWidget*>::iterator it = cardWidgets.begin(); it != cardWidgets.end(); ++it)
|
||||||
std::map<uint32_t, CardWidget*>::iterator it;
|
|
||||||
for (it = cardWidgets.begin(); it != cardWidgets.end(); ++it)
|
|
||||||
removeCard(it->first);
|
removeCard(it->first);
|
||||||
}{
|
for (std::map<uint32_t, char*>::iterator it = clientNames.begin(); it != clientNames.end(); ++it)
|
||||||
std::map<uint32_t, char*>::iterator it;
|
|
||||||
for (it = clientNames.begin(); it != clientNames.end(); ++it)
|
|
||||||
removeSourceOutput(it->first);
|
removeSourceOutput(it->first);
|
||||||
}
|
|
||||||
deleteEventRoleWidget();
|
deleteEventRoleWidget();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue