Commit 3ff6fcae4e7a8466913d8146a640e5be3eae69da
1 parent
88521b58
Dropping unneeded static keywords
Showing
1 changed file
with
5 additions
and
5 deletions
include/CLI/Validators.hpp
| ... | ... | @@ -78,7 +78,7 @@ struct Validator { |
| 78 | 78 | }; |
| 79 | 79 | |
| 80 | 80 | // The implemntation of the built in validators is using the Validator class; |
| 81 | -// the user is only expected to use the const static versions (since there's no setup). | |
| 81 | +// the user is only expected to use the const (static) versions (since there's no setup). | |
| 82 | 82 | // Therefore, this is in detail. |
| 83 | 83 | namespace detail { |
| 84 | 84 | |
| ... | ... | @@ -152,16 +152,16 @@ struct NonexistentPathValidator : public Validator { |
| 152 | 152 | // Static is not needed here, because global const implies static. |
| 153 | 153 | |
| 154 | 154 | /// Check for existing file (returns error message if check fails) |
| 155 | -const static detail::ExistingFileValidator ExistingFile; | |
| 155 | +const detail::ExistingFileValidator ExistingFile; | |
| 156 | 156 | |
| 157 | 157 | /// Check for an existing directory (returns error message if check fails) |
| 158 | -const static detail::ExistingDirectoryValidator ExistingDirectory; | |
| 158 | +const detail::ExistingDirectoryValidator ExistingDirectory; | |
| 159 | 159 | |
| 160 | 160 | /// Check for an existing path |
| 161 | -const static detail::ExistingPathValidator ExistingPath; | |
| 161 | +const detail::ExistingPathValidator ExistingPath; | |
| 162 | 162 | |
| 163 | 163 | /// Check for an non-existing path |
| 164 | -const static detail::NonexistentPathValidator NonexistentPath; | |
| 164 | +const detail::NonexistentPathValidator NonexistentPath; | |
| 165 | 165 | |
| 166 | 166 | /// Produce a range (factory). Min and max are inclusive. |
| 167 | 167 | struct Range : public Validator { | ... | ... |