Use <cmath> in favor of <math.h> everywhere.
authorUwe Hermann <uwe@hermann-uwe.de>
Thu, 1 Jan 2015 19:45:59 +0000 (20:45 +0100)
committerUwe Hermann <uwe@hermann-uwe.de>
Thu, 1 Jan 2015 19:45:59 +0000 (20:45 +0100)
This is both for consistency reasons, as well as to reduce the
likelyhood of issues that may occur due to <math.h> / <cmath> mixups.

pv/data/analogsegment.cpp
pv/data/logicsegment.cpp
pv/util.hpp
pv/view/signal.cpp
pv/view/trace.cpp

index b970bebd28baff233bc559632249fe40b1f5f169..c1a119e4cd13305f3caa91f98c6a420ab918d927 100644 (file)
@@ -23,7 +23,7 @@
 #include <assert.h>
 #include <string.h>
 #include <stdlib.h>
-#include <math.h>
+#include <cmath>
 
 #include <algorithm>
 
index 2b9d89bf4398b5ae4c74f72b59fc890be2e34145..2df64bb2769955e8182050edf63deb86bfb3e1c9 100644 (file)
@@ -23,7 +23,7 @@
 #include <assert.h>
 #include <string.h>
 #include <stdlib.h>
-#include <math.h>
+#include <cmath>
 
 #include "logicsegment.hpp"
 
index 5d65694054ab2c0b2e6a9f652fc736abfc5da8cd..5466322b738aec51d60904be5df765de45a389d2 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef PULSEVIEW_UTIL_H
 #define PULSEVIEW_UTIL_H
 
-#include <math.h>
+#include <cmath>
 
 #include <QString>
 
index dad8f1edc6f106af051b82665b14350ab1542a08..7348d25b2d44bea1d974d05bda84d181102dfdbf 100644 (file)
@@ -21,7 +21,7 @@
 #include <extdef.h>
 
 #include <assert.h>
-#include <math.h>
+#include <cmath>
 
 #include <QApplication>
 #include <QFormLayout>
index a96b0327e0e6ffd6f5364876b928ebaa87077daf..8e3927848ae64d271619444e2dae89b462d20e5f 100644 (file)
@@ -21,7 +21,7 @@
 #include <extdef.h>
 
 #include <assert.h>
-#include <math.h>
+#include <cmath>
 
 #include <QApplication>
 #include <QFormLayout>