projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Segment: Rework append_samples() so it can handle large input
[pulseview.git]
/
pv
/
view
/
header.cpp
diff --git
a/pv/view/header.cpp
b/pv/view/header.cpp
index ad91cd12f8c5df760058f121e0c2c30302efd43e..e2ccfedc4e4d53cdb68d8897edaa1ec7f1622b24 100644
(file)
--- a/
pv/view/header.cpp
+++ b/
pv/view/header.cpp
@@
-23,8
+23,8
@@
#include "signal.hpp"
#include "tracegroup.hpp"
#include "signal.hpp"
#include "tracegroup.hpp"
-#include <cassert>
#include <algorithm>
#include <algorithm>
+#include <cassert>
#include <boost/iterator/filter_iterator.hpp>
#include <boost/iterator/filter_iterator.hpp>
@@
-41,10
+41,6
@@
using boost::make_filter_iterator;
using std::count_if;
using std::dynamic_pointer_cast;
using std::count_if;
using std::dynamic_pointer_cast;
-using std::max;
-using std::make_pair;
-using std::min;
-using std::pair;
using std::shared_ptr;
using std::stable_sort;
using std::vector;
using std::shared_ptr;
using std::stable_sort;
using std::vector;
@@
-107,8
+103,7
@@
void Header::paintEvent(QPaintEvent*)
// would be clipped away.
const QRect rect(0, 0, width() - BaselineOffset, height());
// would be clipped away.
const QRect rect(0, 0, width() - BaselineOffset, height());
- vector< shared_ptr<RowItem> > items(
- view_.list_by_type<RowItem>());
+ vector< shared_ptr<RowItem> > items(view_.list_by_type<RowItem>());
stable_sort(items.begin(), items.end(),
[](const shared_ptr<RowItem> &a, const shared_ptr<RowItem> &b) {
stable_sort(items.begin(), items.end(),
[](const shared_ptr<RowItem> &a, const shared_ptr<RowItem> &b) {