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)
{
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();
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()))
{
{
irc::string listitem = banmask.c_str();
irc::string thischan = chan->name.c_str();
- for (timedbans::iterator i = TimedBanList.begin(); i < TimedBanList.end(); i++)
+ for (timedbans::iterator i = TimedBanList.begin(); i != TimedBanList.end(); i++)
{
irc::string target = i->mask.c_str();
irc::string tchan = i->channel.c_str();
virtual void OnBackgroundTimer(time_t curtime)
{
timedbans::iterator safei;
- for (timedbans::iterator i = TimedBanList.begin(); i < TimedBanList.end();)
+ for (timedbans::iterator i = TimedBanList.begin(); i != TimedBanList.end();)
{
/* Safe copy of iterator, so we can erase as we iterate */
safei = i;