i = copy(decode_sigs.begin(), decode_sigs.end(), i);
#endif
- stable_sort(traces.begin(), traces.end(), compare_trace_v_offsets);
+ stable_sort(traces.begin(), traces.end(),
+ [](const shared_ptr<Trace> &a, const shared_ptr<Trace> &b) {
+ return a->get_v_offset() < b->get_v_offset(); });
+
return traces;
}
update_scroll();
}
-bool View::compare_trace_v_offsets(const shared_ptr<Trace> &a,
- const shared_ptr<Trace> &b)
-{
- assert(a);
- assert(b);
- return a->get_v_offset() < b->get_v_offset();
-}
-
bool View::eventFilter(QObject *object, QEvent *event)
{
const QEvent::Type type = event->type();
void update_layout();
- static bool compare_trace_v_offsets(
- const std::shared_ptr<pv::view::Trace> &a,
- const std::shared_ptr<pv::view::Trace> &b);
-
private:
bool eventFilter(QObject *object, QEvent *event);