From 3ff6fcae4e7a8466913d8146a640e5be3eae69da Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Fri, 4 May 2018 16:25:16 +0200 Subject: [PATCH] Dropping unneeded static keywords --- include/CLI/Validators.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/CLI/Validators.hpp b/include/CLI/Validators.hpp index e8efde3d..1019d23e 100644 --- a/include/CLI/Validators.hpp +++ b/include/CLI/Validators.hpp @@ -78,7 +78,7 @@ struct Validator { }; // The implemntation of the built in validators is using the Validator class; -// the user is only expected to use the const static versions (since there's no setup). +// the user is only expected to use the const (static) versions (since there's no setup). // Therefore, this is in detail. namespace detail { @@ -152,16 +152,16 @@ struct NonexistentPathValidator : public Validator { // Static is not needed here, because global const implies static. /// Check for existing file (returns error message if check fails) -const static detail::ExistingFileValidator ExistingFile; +const detail::ExistingFileValidator ExistingFile; /// Check for an existing directory (returns error message if check fails) -const static detail::ExistingDirectoryValidator ExistingDirectory; +const detail::ExistingDirectoryValidator ExistingDirectory; /// Check for an existing path -const static detail::ExistingPathValidator ExistingPath; +const detail::ExistingPathValidator ExistingPath; /// Check for an non-existing path -const static detail::NonexistentPathValidator NonexistentPath; +const detail::NonexistentPathValidator NonexistentPath; /// Produce a range (factory). Min and max are inclusive. struct Range : public Validator {