Skip to content

Commit

Permalink
replace pushback with insert
Browse files Browse the repository at this point in the history
  • Loading branch information
nxtum committed Sep 24, 2024
1 parent fe6da73 commit 627a3c6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Source/com/Administrator.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,10 @@ namespace RPC {
ChannelMap::const_iterator index(_channelProxyMap.begin());
while (index != _channelProxyMap.end()) {
const auto &temp = index -> second;
for (auto proxy : temp) {
proxies.push_back(proxy);
}
proxies.insert(proxies.begin(), temp.begin(), temp.end());
index++;
}
for (auto proxy : _danglingProxies) {
proxies.push_back(proxy);
}
proxies.insert(proxies.begin(), _danglingProxies.begin(), _danglingProxies.end());
found = true;
}
else {
Expand Down

0 comments on commit 627a3c6

Please sign in to comment.