Skip to content

Commit 2abf2b1

Browse files
Keanu SisoukKeanu Sisouk
authored andcommitted
[InitDictPersDiagram base] correction, deleting temp2 and directly push_back
1 parent 4fa6e61 commit 2abf2b1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/base/initDictPersistenceDiagram/InitDictPersistenceDiagram.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,12 @@ void InitDictPersistenceDiagram::execute(
4040

4141
int FirstId = std::min_element(tempDistsSummed.begin(), tempDistsSummed.end())
4242
- tempDistsSummed.begin();
43-
const auto &temp = datas[indices[FirstId]];
44-
DictDiagrams.push_back(temp);
43+
DictDiagrams.push_back(datas[indices[FirstId]]);
4544
for(int i = 0; i < nbAtoms; ++i) {
4645
if(i == FirstId) {
4746
continue;
4847
} else {
49-
const auto &temp2 = datas[indices[i]];
50-
DictDiagrams.push_back(temp2);
48+
DictDiagrams.push_back(datas[indices[i]]);
5149
}
5250
}
5351
}

0 commit comments

Comments
 (0)