From 5beab3dca02f048d65a80400649f03e378da962d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Mon, 6 Apr 2015 13:30:08 +0200 Subject: [PATCH] Use constant in GenerationLimit class. --- src/condition/generationLimit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/condition/generationLimit.h b/src/condition/generationLimit.h index 9cd11da..e387669 100644 --- a/src/condition/generationLimit.h +++ b/src/condition/generationLimit.h @@ -26,7 +26,7 @@ namespace genetic { * Variable indicating max number of generations, after which program * will be stopped */ - unsigned int maxNumberOfGenerations = 0; + const unsigned int maxNumberOfGenerations = 0; /** * Checks if the given limit of generations has occured -- 2.30.2