projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
6f925ba
)
main.cpp: Minor consistency fixes found by clang-tidy.
author
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 18 Mar 2017 19:01:54 +0000
(20:01 +0100)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Sat, 18 Mar 2017 19:01:54 +0000
(20:01 +0100)
main.cpp
patch
|
blob
|
history
diff --git
a/main.cpp
b/main.cpp
index 51e6100295d18efc113d825351ee4390a54eb0ba..2119b81e50d778daf1ca3e2b6ba4fc09bd8b3f97 100644
(file)
--- a/
main.cpp
+++ b/
main.cpp
@@
-21,7
+21,7
@@
#include <libsigrokdecode/libsigrokdecode.h> /* First, so we avoid a _POSIX_C_SOURCE warning. */
#endif
#include <libsigrokdecode/libsigrokdecode.h> /* First, so we avoid a _POSIX_C_SOURCE warning. */
#endif
-#include <
stdint.h
>
+#include <
cstdint
>
#include <libsigrokcxx/libsigrokcxx.hpp>
#include <getopt.h>
#include <libsigrokcxx/libsigrokcxx.hpp>
#include <getopt.h>
@@
-85,7
+85,7
@@
int main(int argc, char *argv[])
#endif
// Parse arguments
#endif
// Parse arguments
- while (
1
) {
+ while (
true
) {
static const struct option long_options[] = {
{"help", no_argument, nullptr, 'h'},
{"version", no_argument, nullptr, 'V'},
static const struct option long_options[] = {
{"help", no_argument, nullptr, 'h'},
{"version", no_argument, nullptr, 'V'},
@@
-195,7
+195,7
@@
int main(int argc, char *argv[])
srd_exit();
#endif
srd_exit();
#endif
- } while (
0
);
+ } while (
false
);
return ret;
}
return ret;
}