]> sigrok.org Git - pulseview.git/blobdiff - pv/view/cursorpair.h
Replaced boost::shared_ptr with std::shared_ptr
[pulseview.git] / pv / view / cursorpair.h
index 815276e24c0ca997faf2af5e780da632cb6108eb..6c56dcd71dc89499dc8a5eceecd6593f43be1a85 100644 (file)
@@ -23,7 +23,7 @@
 
 #include "cursor.h"
 
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
 #include <QPainter>
 
@@ -47,12 +47,12 @@ public:
        /**
         * Returns a pointer to the first cursor.
         */
-       boost::shared_ptr<Cursor> first() const;
+       std::shared_ptr<Cursor> first() const;
 
        /**
         * Returns a pointer to the second cursor.
         */
-       boost::shared_ptr<Cursor> second() const;
+       std::shared_ptr<Cursor> second() const;
 
 public:
        QRectF get_label_rect(const QRect &rect) const;
@@ -69,7 +69,7 @@ public:
        std::pair<float, float> get_cursor_offsets() const;
 
 private:
-       boost::shared_ptr<Cursor> _first, _second;
+       std::shared_ptr<Cursor> _first, _second;
        const View &_view;
 
        QSizeF _text_size;