Ignore:
Timestamp:
Sep 6, 2015, 10:25:00 PM (10 years ago)
Author:
Frederik Heber <heber@…>
Children:
b303d0
Parents:
5c22be
git-author:
Frederik Heber <heber@…> (03/13/15 15:01:16)
git-committer:
Frederik Heber <heber@…> (09/06/15 22:25:00)
Message:

Added DeleteCommand(string) to CommandList.

  • iterator is actually not available outside CommandList class.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/base/command_list.cpp

    r5c22be rebc866  
    106106}
    107107
     108void CommandList::DeleteCommand(const std::string& _command)
     109{
     110  CommandList::iterator iter = commands.begin();
     111  for (;iter != commands.end(); ++iter)
     112          if (iter->first == _command)
     113                  break;
     114  assert( iter != commands.end() );
     115  DeleteCommand(iter);
     116}
     117
    108118void CommandList::Print()
    109119{
Note: See TracChangeset for help on using the changeset viewer.