Changeset 10916 for code/branches/cpp11_v2/src/libraries/core/Namespace.cc
- Timestamp:
- Dec 2, 2015, 11:22:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/Namespace.cc
r10821 r10916 53 53 { 54 54 if (this->bRoot_) 55 for ( auto & elem: this->representingNamespaces_)56 delete elem;55 for (NamespaceNode* node : this->representingNamespaces_) 56 delete node; 57 57 } 58 58 … … 80 80 for (unsigned int i = 0; i < tokens.size(); i++) 81 81 { 82 for ( auto & elem: this->getNamespace()->representingNamespaces_)82 for (NamespaceNode* node : this->getNamespace()->representingNamespaces_) 83 83 { 84 std::set<NamespaceNode*> temp = elem->getNodeRelative(tokens[i]);84 std::set<NamespaceNode*> temp = node->getNodeRelative(tokens[i]); 85 85 this->representingNamespaces_.insert(temp.begin(), temp.end()); 86 86 } … … 93 93 if (this->bAutogeneratedFileRootNamespace_) 94 94 { 95 for ( auto & elem: this->representingNamespaces_)95 for (NamespaceNode* node : this->representingNamespaces_) 96 96 { 97 elem->setRoot(true);98 elem->setHidden(true);97 node->setRoot(true); 98 node->setHidden(true); 99 99 } 100 100 } … … 114 114 bool Namespace::includes(const Namespace* ns) const 115 115 { 116 for ( const auto & elem1 : this->representingNamespaces_)116 for (NamespaceNode* node1 : this->representingNamespaces_) 117 117 { 118 for ( const auto & elem2 : ns->representingNamespaces_)118 for (NamespaceNode* node2 : ns->representingNamespaces_) 119 119 { 120 if ( elem1->includes(elem2))120 if (node1->includes(node2)) 121 121 { 122 122 if (this->operator_ == "or") … … 149 149 150 150 int i = 0; 151 for ( const auto & elem: this->representingNamespaces_)151 for (NamespaceNode* node : this->representingNamespaces_) 152 152 { 153 153 if (i > 0) 154 154 output += " / "; 155 155 156 output += elem->toString();156 output += node->toString(); 157 157 i++; 158 158 } … … 166 166 167 167 int i = 0; 168 for ( const auto & elem: this->representingNamespaces_)168 for (NamespaceNode* node : this->representingNamespaces_) 169 169 { 170 170 if (i > 0) 171 171 output += '\n'; 172 172 173 output += elem->toString(indentation);173 output += node->toString(indentation); 174 174 i++; 175 175 }
Note: See TracChangeset
for help on using the changeset viewer.