Apply changes suggested by clang-tidy
authorSoeren Apel <soeren@apelpie.net>
Thu, 8 Mar 2018 23:31:51 +0000 (00:31 +0100)
committerSoeren Apel <soeren@apelpie.net>
Mon, 12 Mar 2018 14:58:17 +0000 (15:58 +0100)
pv/mainwindow.cpp
pv/views/trace/analogsignal.cpp
pv/views/trace/view.cpp

index 6eabdb6737e0a5b3a8e6641392480c8ea271bff4..4ab78d1dc9972b1e2433fd34c830b240a3624c5e 100644 (file)
 
 #include <libsigrokcxx/libsigrokcxx.hpp>
 
-using std::bind;
 using std::dynamic_pointer_cast;
 using std::make_shared;
-using std::placeholders::_1;
 using std::shared_ptr;
 using std::string;
 
index 11a73068b25c13bb7724971a57aad8775796e38b..cb8e4a527938bde2dd056d2c563d61e6661fa579 100644 (file)
@@ -47,7 +47,6 @@
 
 #include <libsigrokcxx/libsigrokcxx.hpp>
 
-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;
index af15f1e49105f522e4eae124c9182623553c538b..5b2a2ef40b98f1f0aec84aee3f086606bcbbcd16 100644 (file)
@@ -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;