Initialize booleans to get rid of compiler-warnings.

This commit is contained in:
kuepper 2005-10-03 09:47:06 +00:00
commit 03b1689de9
2 changed files with 65 additions and 65 deletions

View file

@ -28,10 +28,10 @@ public:
/** /**
* Ctor - no requirement * Ctor - no requirement
*/ */
// START eventually add or modify the anyVariable argument // START eventually add or modify the anyVariable argument
eoOneMaxMutation() eoOneMaxMutation()
// eoOneMaxMutation( varType _anyVariable) : anyVariable(_anyVariable) // eoOneMaxMutation( varType _anyVariable) : anyVariable(_anyVariable)
// END eventually add or modify the anyVariable argument // END eventually add or modify the anyVariable argument
{ {
// START Code of Ctor of an eoOneMaxEvalFunc object // START Code of Ctor of an eoOneMaxEvalFunc object
// END Code of Ctor of an eoOneMaxEvalFunc object // END Code of Ctor of an eoOneMaxEvalFunc object
@ -46,7 +46,7 @@ public:
*/ */
bool operator()(GenotypeT & _genotype) bool operator()(GenotypeT & _genotype)
{ {
bool isModified; bool isModified(true);
// START code for mutation of the _genotype object // START code for mutation of the _genotype object
/** Requirement /** Requirement

View file

@ -1,7 +1,7 @@
/** -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*- /** -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-
The above line is usefulin Emacs-like editors The above line is usefulin Emacs-like editors
*/ */
/* /*
Template for simple quadratic crossover operators Template for simple quadratic crossover operators
@ -32,7 +32,7 @@ public:
// START eventually add or modify the anyVariable argument // START eventually add or modify the anyVariable argument
eoOneMaxQuadCrossover() eoOneMaxQuadCrossover()
// eoOneMaxQuadCrossover( varType _anyVariable) : anyVariable(_anyVariable) // eoOneMaxQuadCrossover( varType _anyVariable) : anyVariable(_anyVariable)
// END eventually add or modify the anyVariable argument // END eventually add or modify the anyVariable argument
{ {
// START Code of Ctor of an eoOneMaxEvalFunc object // START Code of Ctor of an eoOneMaxEvalFunc object
// END Code of Ctor of an eoOneMaxEvalFunc object // END Code of Ctor of an eoOneMaxEvalFunc object
@ -48,7 +48,7 @@ public:
*/ */
bool operator()(GenotypeT& _genotype1, GenotypeT & _genotype2) bool operator()(GenotypeT& _genotype1, GenotypeT & _genotype2)
{ {
bool oneAtLeastIsModified; bool oneAtLeastIsModified(true);
// START code for crossover of _genotype1 and _genotype2 objects // START code for crossover of _genotype1 and _genotype2 objects
/** Requirement /** Requirement