]> sigrok.org Git - pulseview.git/blobdiff - pv/strnatcmp.hpp
AnalogSignal: Use setting change handler for threshold display
[pulseview.git] / pv / strnatcmp.hpp
index 6c7754cc9ceb0af53a9cb246199c734b4695c083..eaa73608e956aedadc198bd05b51b42a3a4eb400 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 <cctype>
+#include <cstddef>     /* size_t */
 #include <string>
 
 using std::string;
@@ -89,7 +89,7 @@ static int strnatcmp0(char const *a, char const *b, int fold_case)
 
        ai = bi = 0;
 
-       while (1) {
+       while (true) {
                ca = a[ai];
                cb = b[bi];