- Timestamp:
- Mar 2, 2022, 9:37:50 PM (3 years ago)
- Branches:
- master
- Children:
- cc8716b
- Parents:
- 2a2f310
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/TreeWriter.cc
r2a2f310 r4e8e72b 45 45 #include "TString.h" 46 46 47 #include <set> 47 48 #include <algorithm> 48 49 #include <iostream> … … 149 150 { 150 151 TIter it1(candidate->GetCandidates()); 152 set<Candidate *> s; 153 set<Candidate *>::iterator it3; 151 154 it1.Reset(); 155 s.clear(); 152 156 array->Clear(); 153 157 … … 159 163 if(candidate->GetCandidates()->GetEntriesFast() == 0) 160 164 { 161 array->Add(candidate);165 s.insert(candidate); 162 166 continue; 163 167 } … … 167 171 if(candidate->GetCandidates()->GetEntriesFast() == 0) 168 172 { 169 array->Add(candidate);173 s.insert(candidate); 170 174 continue; 171 175 } … … 178 182 if(candidate->GetCandidates()->GetEntriesFast() == 0) 179 183 { 180 array->Add(candidate);184 s.insert(candidate); 181 185 } 182 186 } 187 } 188 189 for(it3 = s.begin(); it3 != s.end(); ++it3) 190 { 191 array->Add(*it3); 183 192 } 184 193 }
Note:
See TracChangeset
for help on using the changeset viewer.