Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionRegistry.cpp

    rb59da6 rbcf653  
    4747 * \return true - Action instance present, false - not
    4848 */
    49 bool ActionRegistry::isActionPresentByName(const std::string name) const
     49bool ActionRegistry::isActionPresentByName(const std::string name)
    5050{
    5151  return isPresentByName(name);
    5252}
    5353
    54 /** Returns the last present action position in the requested menu.
    55  * \param &token token of the menu
    56  * \return last used position
    57  */
    58 int ActionRegistry::getLastPosition(const std::string &token) const
    59 {
    60   int position = 0;
    61   for (const_iterator iter = getBeginIter();
    62       iter != getEndIter();
    63       ++iter) {
    64     const std::string &MenuName = (iter->second)->Traits.getMenuName();
    65     const int &MenuPosition = (iter->second)->Traits.getMenuPosition();
    66     if ((MenuName == token) && (position < MenuPosition))
    67       position = MenuPosition;
    68   }
    69   return position;
    70 }
    71 
    72 
    7354CONSTRUCT_SINGLETON(ActionRegistry)
    7455CONSTRUCT_REGISTRY(Action)
Note: See TracChangeset for help on using the changeset viewer.