Change arrangement of optional and help text arguments

This commit is contained in:
Alexander Bock
2016-09-14 16:39:43 +02:00
parent 09c1b4be6d
commit 8bbf1c3d0d
2 changed files with 6 additions and 5 deletions

View File

@@ -56,8 +56,8 @@ struct Verifier {
}; };
struct DocumentationEntry { struct DocumentationEntry {
DocumentationEntry(std::string key, Verifier* t, Optional optional = Optional::No, DocumentationEntry(std::string key, Verifier* t, std::string doc = "",
std::string doc = ""); Optional optional = Optional::No);
std::string key; std::string key;
std::shared_ptr<Verifier> tester; std::shared_ptr<Verifier> tester;

View File

@@ -93,12 +93,13 @@ bool Verifier::test(const ghoul::Dictionary& dict, const std::string& key) const
return false; return false;
}; };
DocumentationEntry::DocumentationEntry(std::string key, Verifier* t, DocumentationEntry::DocumentationEntry(std::string key, Verifier* t, std::string doc,
Optional optional, std::string doc) Optional optional)
: key(std::move(key)) : key(std::move(key))
, tester(std::move(t)) , tester(std::move(t))
, documentation(std::move(doc))
, optional(optional) , optional(optional)
, documentation(std::move(doc)) {} {}
TestResult testSpecification(const Documentation& d, const ghoul::Dictionary& dictionary){ TestResult testSpecification(const Documentation& d, const ghoul::Dictionary& dictionary){
TestResult result; TestResult result;