From 742b76b006daf27ea19b2834e56696cb3c5a0e18 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Tue, 13 Jan 2015 02:01:20 +0100 Subject: auto format + made some functions const --- src/core/common/Argument.hpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/core/common/Argument.hpp') diff --git a/src/core/common/Argument.hpp b/src/core/common/Argument.hpp index 7227ddb..23078b2 100644 --- a/src/core/common/Argument.hpp +++ b/src/core/common/Argument.hpp @@ -380,7 +380,7 @@ public: * @param logger is the logger instance to which errors should be written. * @return true if the given variant was valid, false otherwise. */ - bool validate(Variant &var, Logger &logger); + bool validate(Variant &var, Logger &logger) const; }; /** @@ -401,6 +401,12 @@ private: std::unordered_map names; public: + + /** + * Default constructor. Provides no arguments. + */ + Arguments() {}; + /** * Constructor of the Arguments class from a list of Argument instances. * @@ -422,7 +428,7 @@ public: * will be written. * @return true if the operation was successful, false if an error occured. */ - bool validateArray(Variant::arrayType &arr, Logger &logger); + bool validateArray(Variant::arrayType &arr, Logger &logger) const; /** * Checks whether the content of the given variant map matches the @@ -441,7 +447,7 @@ public: * @return true if the operation was successful, false if an error occured. */ bool validateMap(Variant::mapType &map, Logger &logger, - bool ignoreUnknown = false); + bool ignoreUnknown = false) const; }; } -- cgit v1.2.3