Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 7, 2015, 10:23:42 AM (9 years ago)
Author:
landauf
Message:

no space needed anymore between closing template brackets ('> >' → '>>')

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/Game.cc

    r10768 r10769  
    7373        std::string name_;
    7474        weak_ptr<GameStateTreeNode> parent_;
    75         std::vector<shared_ptr<GameStateTreeNode> > children_;
     75        std::vector<shared_ptr<GameStateTreeNode>> children_;
    7676    };
    7777
     
    384384
    385385        // Check children first
    386         std::vector<shared_ptr<GameStateTreeNode> > requestedNodes;
     386        std::vector<shared_ptr<GameStateTreeNode>> requestedNodes;
    387387        for (unsigned int i = 0; i < lastRequestedNode->children_.size(); ++i)
    388388        {
     
    454454    {
    455455        // Split string into pieces of the form whitespacesText
    456         std::vector<std::pair<std::string, int> > stateStrings;
     456        std::vector<std::pair<std::string, int>> stateStrings;
    457457        size_t pos = 0;
    458458        size_t startPos = 0;
     
    473473
    474474        // Parse elements recursively
    475         std::vector<std::pair<std::string, int> >::const_iterator begin = stateStrings.begin();
     475        std::vector<std::pair<std::string, int>>::const_iterator begin = stateStrings.begin();
    476476        parseStates(begin, this->rootStateNode_);
    477477    }
     
    479479    /*** Internal ***/
    480480
    481     void Game::parseStates(std::vector<std::pair<std::string, int> >::const_iterator& it, shared_ptr<GameStateTreeNode> currentNode)
     481    void Game::parseStates(std::vector<std::pair<std::string, int>>::const_iterator& it, shared_ptr<GameStateTreeNode> currentNode)
    482482    {
    483483        SubString tokens(it->first, ",");
    484         std::vector<std::pair<std::string, int> >::const_iterator startIt = it;
     484        std::vector<std::pair<std::string, int>>::const_iterator startIt = it;
    485485
    486486        for (unsigned int i = 0; i < tokens.size(); ++i)
     
    620620    }
    621621
    622     /*static*/ std::map<std::string, shared_ptr<Game::GameStateFactory> >& Game::GameStateFactory::getFactories()
    623     {
    624         static std::map<std::string, shared_ptr<GameStateFactory> > factories;
     622    /*static*/ std::map<std::string, shared_ptr<Game::GameStateFactory>>& Game::GameStateFactory::getFactories()
     623    {
     624        static std::map<std::string, shared_ptr<GameStateFactory>> factories;
    625625        return factories;
    626626    }
     
    628628    /*static*/ shared_ptr<GameState> Game::GameStateFactory::fabricate(const GameStateInfo& info)
    629629    {
    630         std::map<std::string, shared_ptr<Game::GameStateFactory> >::const_iterator it = getFactories().find(info.className);
     630        std::map<std::string, shared_ptr<Game::GameStateFactory>>::const_iterator it = getFactories().find(info.className);
    631631        assert(it != getFactories().end());
    632632        return it->second->fabricateInternal(info);
Note: See TracChangeset for help on using the changeset viewer.