From: Soeren Apel Date: Thu, 8 Mar 2018 23:31:51 +0000 (+0100) Subject: Apply changes suggested by clang-tidy X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=9a0e130580f37277d94fd2637ee17bb9c181e110;ds=sidebyside Apply changes suggested by clang-tidy --- diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 6eabdb67..4ab78d1d 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -50,10 +50,8 @@ #include -using std::bind; using std::dynamic_pointer_cast; using std::make_shared; -using std::placeholders::_1; using std::shared_ptr; using std::string; diff --git a/pv/views/trace/analogsignal.cpp b/pv/views/trace/analogsignal.cpp index 11a73068..cb8e4a52 100644 --- a/pv/views/trace/analogsignal.cpp +++ b/pv/views/trace/analogsignal.cpp @@ -47,7 +47,6 @@ #include -using std::bind; using std::deque; using std::div; using std::div_t; @@ -57,7 +56,6 @@ using std::min; using std::numeric_limits; using std::out_of_range; using std::pair; -using std::placeholders::_1; using std::shared_ptr; using std::vector; @@ -449,8 +447,7 @@ void AnalogSignal::paint_trace(QPainter &p, } } - sampling_points[idx].push_back( - QRectF(x - (w / 2), y - sample_block[block_sample] * scale_ - (w / 2), w, w)); + sampling_points[idx].emplace_back(x - (w / 2), y - sample_block[block_sample] * scale_ - (w / 2), w, w); } } delete[] sample_block; diff --git a/pv/views/trace/view.cpp b/pv/views/trace/view.cpp index af15f1e4..5b2a2ef4 100644 --- a/pv/views/trace/view.cpp +++ b/pv/views/trace/view.cpp @@ -79,7 +79,6 @@ using std::make_pair; using std::make_shared; using std::min; using std::pair; -using std::placeholders::_1; using std::set; using std::set_difference; using std::shared_ptr;