Commit 9e183646c57bd50d755fff467d4d436c99fcedaa
1 parent
78ed9956
A few fixes for failing tests
Showing
1 changed file
with
2 additions
and
2 deletions
include/CLI/App.hpp
| ... | ... | @@ -842,9 +842,9 @@ class App { |
| 842 | 842 | value = "false"; |
| 843 | 843 | } |
| 844 | 844 | |
| 845 | - if(value.size() != 0) { | |
| 845 | + if(!value.empty()) { | |
| 846 | 846 | if(write_description && opt->has_description()) { |
| 847 | - if(out.tellp() != 0) { | |
| 847 | + if(static_cast<int>(out.tellp()) != 0) { | |
| 848 | 848 | out << std::endl; |
| 849 | 849 | } |
| 850 | 850 | out << "; " << detail::fix_newlines("; ", opt->get_description()) << std::endl; | ... | ... |