Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2015, 11:22:03 PM (9 years ago)
Author:
landauf
Message:

use actual types instead of 'auto'. only exception is for complicated template types, e.g. when iterating over a map

File:
1 edited

Legend:

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

    r10821 r10916  
    5353    {
    5454        if (this->bRoot_)
    55             for (auto & elem : this->representingNamespaces_)
    56                 delete elem;
     55            for (NamespaceNode* node : this->representingNamespaces_)
     56                delete node;
    5757    }
    5858
     
    8080            for (unsigned int i = 0; i < tokens.size(); i++)
    8181            {
    82                 for (auto & elem : this->getNamespace()->representingNamespaces_)
     82                for (NamespaceNode* node : this->getNamespace()->representingNamespaces_)
    8383                {
    84                     std::set<NamespaceNode*> temp = elem->getNodeRelative(tokens[i]);
     84                    std::set<NamespaceNode*> temp = node->getNodeRelative(tokens[i]);
    8585                    this->representingNamespaces_.insert(temp.begin(), temp.end());
    8686                }
     
    9393        if (this->bAutogeneratedFileRootNamespace_)
    9494        {
    95             for (auto & elem : this->representingNamespaces_)
     95            for (NamespaceNode* node : this->representingNamespaces_)
    9696            {
    97                 elem->setRoot(true);
    98                 elem->setHidden(true);
     97                node->setRoot(true);
     98                node->setHidden(true);
    9999            }
    100100        }
     
    114114    bool Namespace::includes(const Namespace* ns) const
    115115    {
    116         for (const auto & elem1 : this->representingNamespaces_)
     116        for (NamespaceNode* node1 : this->representingNamespaces_)
    117117        {
    118             for (const auto & elem2 : ns->representingNamespaces_)
     118            for (NamespaceNode* node2 : ns->representingNamespaces_)
    119119            {
    120                 if (elem1->includes(elem2))
     120                if (node1->includes(node2))
    121121                {
    122122                    if (this->operator_ == "or")
     
    149149
    150150        int i = 0;
    151         for (const auto & elem : this->representingNamespaces_)
     151        for (NamespaceNode* node : this->representingNamespaces_)
    152152        {
    153153            if (i > 0)
    154154                output += " / ";
    155155
    156             output += elem->toString();
     156            output += node->toString();
    157157            i++;
    158158        }
     
    166166
    167167        int i = 0;
    168         for (const auto & elem : this->representingNamespaces_)
     168        for (NamespaceNode* node : this->representingNamespaces_)
    169169        {
    170170            if (i > 0)
    171171                output += '\n';
    172172
    173             output += elem->toString(indentation);
     173            output += node->toString(indentation);
    174174            i++;
    175175        }
Note: See TracChangeset for help on using the changeset viewer.