mainwindow: Compact iterator decls

This commit is contained in:
Colin Guthrie 2010-04-21 00:44:01 +01:00
parent 9fe20201f2
commit 95e48d5c9e
1 changed files with 12 additions and 25 deletions

View File

@ -917,31 +917,18 @@ void MainWindow::removeClient(uint32_t index) {
}
void MainWindow::removeAllWidgets() {
{
std::map<uint32_t, SinkInputWidget*>::iterator it;
for (it = sinkInputWidgets.begin(); it != sinkInputWidgets.end(); ++it)
for (std::map<uint32_t, SinkInputWidget*>::iterator it = sinkInputWidgets.begin(); it != sinkInputWidgets.end(); ++it)
removeSinkInput(it->first);
}{
std::map<uint32_t, SourceOutputWidget*>::iterator it;
for (it = sourceOutputWidgets.begin(); it != sourceOutputWidgets.end(); ++it)
for (std::map<uint32_t, SourceOutputWidget*>::iterator it = sourceOutputWidgets.begin(); it != sourceOutputWidgets.end(); ++it)
removeSourceOutput(it->first);
}{
std::map<uint32_t, SinkWidget*>::iterator it;
for (it = sinkWidgets.begin(); it != sinkWidgets.end(); ++it)
for (std::map<uint32_t, SinkWidget*>::iterator it = sinkWidgets.begin(); it != sinkWidgets.end(); ++it)
removeSink(it->first);
}{
std::map<uint32_t, SourceWidget*>::iterator it;
for (it = sourceWidgets.begin(); it != sourceWidgets.end(); ++it)
for (std::map<uint32_t, SourceWidget*>::iterator it = sourceWidgets.begin(); it != sourceWidgets.end(); ++it)
removeSource(it->first);
}{
std::map<uint32_t, CardWidget*>::iterator it;
for (it = cardWidgets.begin(); it != cardWidgets.end(); ++it)
for (std::map<uint32_t, CardWidget*>::iterator it = cardWidgets.begin(); it != cardWidgets.end(); ++it)
removeCard(it->first);
}{
std::map<uint32_t, char*>::iterator it;
for (it = clientNames.begin(); it != clientNames.end(); ++it)
for (std::map<uint32_t, char*>::iterator it = clientNames.begin(); it != clientNames.end(); ++it)
removeSourceOutput(it->first);
}
deleteEventRoleWidget();
}