Make code safer.
[command.git] / include / parameter.h
index 3f5cfaab896bc9cbccfbcb54447fdd2ee46e2ce2..a96128c407e50f226d417a8ac5b811cf3944eb7a 100644 (file)
@@ -21,7 +21,7 @@ namespace command {
          *
          * @param description Description of current Argument
          */
-        Parameter(std::string description)
+        Parameter(const std::string & description)
             : Descriptive(description) {
         }
         virtual ~Parameter() {}
@@ -35,7 +35,7 @@ namespace command {
          * Method used for checking if the given user value understandable for
          * parameter.
          */
-        virtual bool understand(std::string argVal) = 0;
+        virtual bool understand(const std::string & ) = 0;
     };
 }