diff options
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r-- | src/modules/m_spanningtree/treeserver.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_spanningtree/utils.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/treeserver.cpp b/src/modules/m_spanningtree/treeserver.cpp index bffcf0576..a9f61221d 100644 --- a/src/modules/m_spanningtree/treeserver.cpp +++ b/src/modules/m_spanningtree/treeserver.cpp @@ -316,7 +316,7 @@ void TreeServer::AddChild(TreeServer* Child) bool TreeServer::DelChild(TreeServer* Child) { - for (std::vector<TreeServer*>::iterator a = Children.begin(); a < Children.end(); a++) + for (std::vector<TreeServer*>::iterator a = Children.begin(); a != Children.end(); a++) { if (*a == Child) { @@ -337,7 +337,7 @@ bool TreeServer::Tidy() while (stillchildren) { stillchildren = false; - for (std::vector<TreeServer*>::iterator a = Children.begin(); a < Children.end(); a++) + for (std::vector<TreeServer*>::iterator a = Children.begin(); a != Children.end(); a++) { TreeServer* s = (TreeServer*)*a; s->Tidy(); diff --git a/src/modules/m_spanningtree/utils.cpp b/src/modules/m_spanningtree/utils.cpp index 4ea5513ed..3c4d32c29 100644 --- a/src/modules/m_spanningtree/utils.cpp +++ b/src/modules/m_spanningtree/utils.cpp @@ -664,7 +664,7 @@ void SpanningTreeUtilities::DoFailOver(Link* x) Link* SpanningTreeUtilities::FindLink(const std::string& name) { - for (std::vector<Link>::iterator x = LinkBlocks.begin(); x < LinkBlocks.end(); x++) + for (std::vector<Link>::iterator x = LinkBlocks.begin(); x != LinkBlocks.end(); x++) { if (InspIRCd::Match(x->Name.c_str(), name.c_str())) { |