Don't use std:: in the code directly (where possible).
[pulseview.git] / pv / view / trace.cpp
index 978f3dc84137d467fcc0d0dee4288710fb280838..0d4a4536171aacd99082465740deabe66f957793 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <extdef.h>
 
-#include <assert.h>
+#include <cassert>
 #include <cmath>
 
 #include <QApplication>
@@ -35,6 +35,9 @@
 #include "pv/widgets/colourbutton.hpp"
 #include "pv/widgets/popup.hpp"
 
+using std::pair;
+using std::shared_ptr;
+
 namespace pv {
 namespace views {
 namespace TraceView {
@@ -45,7 +48,7 @@ const int Trace::LabelHitPadding = 2;
 const QColor Trace::BrightGrayBGColour = QColor(0, 0, 0, 10*255/100);
 const QColor Trace::DarkGrayBGColour = QColor(0, 0, 0, 15*255/100);
 
-Trace::Trace(std::shared_ptr<data::SignalBase> channel) :
+Trace::Trace(shared_ptr<data::SignalBase> channel) :
        base_(channel),
        popup_(nullptr),
        popup_form_(nullptr)
@@ -166,7 +169,7 @@ void Trace::paint_back(QPainter &p, const ViewItemPaintParams &pp)
 
        p.setPen(QPen(Qt::NoPen));
 
-       const std::pair<int, int> extents = v_extents();
+       const pair<int, int> extents = v_extents();
 
        const int x = 0;
        const int y = get_visual_y() + extents.first;