Skip to content

Commit a1f08c4

Browse files
committed
use reference to tatum::TimingPathElem while iterating in draw_crit_path_elements
1 parent bbe8a9b commit a1f08c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/draw/draw_basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ void draw_crit_path_elements(const std::vector<tatum::TimingPath>& paths, const
11361136
float prev_arr_time = std::numeric_limits<float>::quiet_NaN();
11371137
int i = 0;
11381138
int elementCounter = 0;
1139-
for (tatum::TimingPathElem elem : path.data_arrival_path().elements()) {
1139+
for (const tatum::TimingPathElem& elem : path.data_arrival_path().elements()) {
11401140
bool drawCurrentElement = elementIndexes.empty() ? true : elementIndexes.find(elementCounter) != elementIndexes.end();
11411141

11421142
// draw element

0 commit comments

Comments
 (0)