projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27c0521
)
DecodeTrace: Optimize loop (see also da50281d)
author
Soeren Apel
<soeren@apelpie.net>
Tue, 16 Feb 2016 20:14:41 +0000
(21:14 +0100)
committer
Soeren Apel
<soeren@apelpie.net>
Tue, 16 Feb 2016 20:14:41 +0000
(21:14 +0100)
pv/view/decodetrace.cpp
patch
|
blob
|
history
diff --git
a/pv/view/decodetrace.cpp
b/pv/view/decodetrace.cpp
index e5b84f9945b54788ed4b8c36ad1da5e56ddc7b51..6bafa11e8c3a8d3ad2075fa0e7107fe51e073fdb 100644
(file)
--- a/
pv/view/decodetrace.cpp
+++ b/
pv/view/decodetrace.cpp
@@
-199,9
+199,7
@@
void DecodeTrace::paint_mid(QPainter &p, const ViewItemPaintParams &pp)
const vector<Row> rows(decoder_stack_->get_visible_rows());
visible_rows_.clear();
- for (auto i : rows) {
- const Row &row = i;
-
+ for (const Row& row : rows) {
// Cache the row title widths
int row_title_width;
try {
@@
-229,7
+227,7
@@
void DecodeTrace::paint_mid(QPainter &p, const ViewItemPaintParams &pp)
y += row_height_;
- visible_rows_.push_back(
i
);
+ visible_rows_.push_back(
row
);
}
}