]> sigrok.org Git - pulseview.git/blobdiff - pv/data/logicsegment.cpp
ViewItem: Make hit_box_rect take ViewItemPaintParams
[pulseview.git] / pv / data / logicsegment.cpp
index 2b9d89bf4398b5ae4c74f72b59fc890be2e34145..30e4e67dcecced37fa8267b489c9364363e1223a 100644 (file)
 #include <assert.h>
 #include <string.h>
 #include <stdlib.h>
-#include <math.h>
+#include <cmath>
 
 #include "logicsegment.hpp"
 
-#include <libsigrok/libsigrok.hpp>
+#include <libsigrokcxx/libsigrokcxx.hpp>
 
 using std::lock_guard;
 using std::recursive_mutex;
@@ -306,7 +306,7 @@ void LogicSegment::get_subsampled_edges(
 
                // We cannot fast-forward if there is no mip-map data at
                // at the minimum level.
-               fast_forward = (mip_map_[level].data != NULL);
+               fast_forward = (mip_map_[level].data != nullptr);
 
                if (min_length < MipMapScaleFactor)
                {