Big optimizations and securing code.
[genetic.git] / include / fitness / fitness.h
index 01bddd77e166021e53351eecd4cf478db03efb9a..1ab804afd43f5911dd229f0fcfb85d510e25aec0 100644 (file)
@@ -46,7 +46,7 @@ namespace genetic {
         /**
          * Copy constructor
          */
-        Fitness(_Chromosome& _chromosome)
+        Fitness(const _Chromosome& _chromosome)
             : chromosome(_chromosome) {
         }
 
@@ -63,7 +63,7 @@ namespace genetic {
          * Method used to pass additional arguments needed by the function to
          * run correctly.
          */
-        virtual void parseArguments(std::map<string, string>) { }
+        virtual void parseArguments(std::map<string, string>&) { }
 
         /**
          * Method used to get additional arguments needed by the function to