X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fview.hpp;h=026c7683ffaef224c501ed94ad6cdbe586452742;hp=a23f284825d17534b6edcf11df3a2e302610d661;hb=5c5ce7574062e0d3ad4f7d9dde70b482315d54fb;hpb=2496bf451ebd50b9ab67a1af9b979761c0fbad49 diff --git a/pv/view/view.hpp b/pv/view/view.hpp index a23f2848..026c7683 100644 --- a/pv/view/view.hpp +++ b/pv/view/view.hpp @@ -159,12 +159,7 @@ public: /** * Returns a reference to the pair of cursors. */ - CursorPair& cursors(); - - /** - * Returns a reference to the pair of cursors. - */ - const CursorPair& cursors() const; + std::shared_ptr cursors() const; const QPoint& hover_point() const; @@ -279,7 +274,7 @@ private: unsigned int tick_prefix_; bool show_cursors_; - CursorPair cursors_; + std::shared_ptr cursors_; QPoint hover_point_;