From: Rafał Długołęcki Date: Sun, 26 Apr 2015 12:06:14 +0000 (+0200) Subject: Fix compiling. X-Git-Tag: v0.2~40 X-Git-Url: https://git.dlugolecki.net.pl/?p=command.git;a=commitdiff_plain;h=f18c25700ee2ea38aaa7338aa7a001012d8be8cf Fix compiling. --- diff --git a/include/command.h b/include/command.h index a48ab91..00e8b07 100644 --- a/include/command.h +++ b/include/command.h @@ -13,7 +13,7 @@ namespace command { */ class Command { protected: - std::vector args; + std::vector parameters; public: /** * Default constructor. @@ -24,7 +24,7 @@ namespace command { * responsible for correctly handle user data. */ Command(unsigned int argc, char *argv[], std::initializer_list params) - : args(params) { + : parameters(params) { matchArguments(argc, argv); invoke(); @@ -34,7 +34,7 @@ namespace command { * Destructor. Releases allocated memory. */ ~Command() { - for (Parameter * parameter : args) { + for (Parameter * parameter : parameters) { delete parameter; } } @@ -50,7 +50,7 @@ namespace command { * Invokes passed parameter handlers */ void invoke() { - for(Parameter *param : params) { + for(Parameter *param : parameters) { param->handle(); } } diff --git a/include/parameter.h b/include/parameter.h index e55a2d1..5ca4931 100644 --- a/include/parameter.h +++ b/include/parameter.h @@ -16,7 +16,7 @@ namespace command { */ class Parameter : public Descriptive { protected: - std:string userValue; + std::string userValue; public: typedef class Parameter Type; /**