]> sigrok.org Git - pulseview.git/commitdiff
Don't use deprecated headers.
authorUwe Hermann <redacted>
Mon, 20 Mar 2017 20:40:29 +0000 (21:40 +0100)
committerUwe Hermann <redacted>
Thu, 23 Mar 2017 16:59:00 +0000 (17:59 +0100)
This patch was generated using clang-tidy:

  clang-tidy -checks="-*,modernize-deprecated-headers" -fix

(with some additional manual fixups)

android/loghandler.hpp
pv/storesession.hpp
pv/strnatcmp.hpp
pv/toolbars/mainbar.hpp
pv/view/signal.hpp
pv/view/trace.hpp
pv/view/view.hpp
pv/views/trace/standardbar.hpp
pv/views/viewbase.hpp

index b12a36e1a29fb80bc96c099f648d64e0d8aec9b7..dba7c3c3526720262d52b5392e24f8032ee1b0f1 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef PULSEVIEW_ANDROID_LOGHANDLER_HPP
 #define PULSEVIEW_ANDROID_LOGHANDLER_HPP
 
-#include <stdarg.h>
+#include <cstdarg>
 
 namespace pv {
 
index 64913a74d9eb4961baad25fde89ed39b75b963b8..941ef3270b7f3fc890f76baec861bc57c3ae10af 100644 (file)
@@ -20,8 +20,7 @@
 #ifndef PULSEVIEW_PV_STORESESSION_HPP
 #define PULSEVIEW_PV_STORESESSION_HPP
 
-#include <stdint.h>
-
+#include <cstdint>
 #include <atomic>
 #include <fstream>
 #include <map>
index 6c7754cc9ceb0af53a9cb246199c734b4695c083..0295a5c520f56b5a0df1269ae53c18a361468648 100644 (file)
@@ -27,8 +27,8 @@
 #ifndef PULSEVIEW_PV_STRNATCMP_HPP
 #define PULSEVIEW_PV_STRNATCMP_HPP
 
-#include <stddef.h>    /* size_t */
-#include <ctype.h>
+#include <cstddef>     /* size_t */
+#include <cctype>
 #include <string>
 
 using std::string;
index 0e58fbae8163842b0a80a267158a8466ef6d8715..fd4d94b8d82d57a07fc3da9f92f1c2f46d1b2127 100644 (file)
@@ -20,8 +20,7 @@
 #ifndef PULSEVIEW_PV_TOOLBARS_MAINBAR_HPP
 #define PULSEVIEW_PV_TOOLBARS_MAINBAR_HPP
 
-#include <stdint.h>
-
+#include <cstdint>
 #include <list>
 #include <memory>
 
index 82d3b51fc4a5209610ca43dbd88069da6b258131..2bb8da1b9b2a99a74d4d089fb0765755e19df184 100644 (file)
@@ -25,7 +25,7 @@
 #include <QComboBox>
 #include <QWidgetAction>
 
-#include <stdint.h>
+#include <cstdint>
 
 #include "signalscalehandle.hpp"
 #include "trace.hpp"
index ac4540c91c1c3528aed7d5fa25a93cde30f8acf2..62588a16ce07577aa873b9d48ff477e2aa73c9bf 100644 (file)
@@ -26,7 +26,7 @@
 #include <QRect>
 #include <QString>
 
-#include <stdint.h>
+#include <cstdint>
 
 #include "tracetreeitem.hpp"
 
index f1e40399c6ca863a7d22af09920c98c22d7ab96a..aebc25401bb85d34cad008e28c99fa0104c8dce3 100644 (file)
@@ -20,8 +20,7 @@
 #ifndef PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEW_HPP
 #define PULSEVIEW_PV_VIEWS_TRACEVIEW_VIEW_HPP
 
-#include <stdint.h>
-
+#include <cstdint>
 #include <list>
 #include <memory>
 #include <set>
index 0c9cad8094c150206c3e1bde9abb61ab2a16f52a..f96d8bfe0ed8535e4f336f7ace7bb622233c7878 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef PULSEVIEW_PV_VIEWS_TRACE_STANDARDBAR_HPP
 #define PULSEVIEW_PV_VIEWS_TRACE_STANDARDBAR_HPP
 
-#include <stdint.h>
+#include <cstdint>
 
 #include <QAction>
 #include <QToolBar>
index c4ac059d0c169bfa24f7eb6fc9b950b7ee558852..95f3ff758ca52555d67de6f5b28955f48afddd8f 100644 (file)
@@ -21,8 +21,7 @@
 #ifndef PULSEVIEW_PV_VIEWS_VIEWBASE_HPP
 #define PULSEVIEW_PV_VIEWS_VIEWBASE_HPP
 
-#include <stdint.h>
-
+#include <cstdint>
 #include <memory>
 #include <set>
 #include <vector>