aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treeserver.cpp
diff options
context:
space:
mode:
authorGravatar special2009-05-14 01:12:20 +0000
committerGravatar special2009-05-14 01:12:20 +0000
commitbc9352391f179dbe2a325ff36b00930c886ef1b3 (patch)
treedeb0d719ab454481aacda1b83570e08782accf0e /src/modules/m_spanningtree/treeserver.cpp
parentFix r11381 checking HideWhoisServer incorrectly (diff)
Fix some incorrect STL iterations (using < end() instead of != end())
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11385 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/treeserver.cpp')
-rw-r--r--src/modules/m_spanningtree/treeserver.cpp4
1 files changed, 2 insertions, 2 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();