From 99c8a33b595479a081f4e26be9f3ea340797801b Mon Sep 17 00:00:00 2001 From: boufaras Date: Tue, 14 Dec 2010 10:33:49 +0000 Subject: [PATCH] git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2025 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/paradiseo-mo/src/neighborhood/moIndexNeighbor.h | 3 ++- trunk/paradiseo-mo/src/neighborhood/moOrderNeighborhood.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/trunk/paradiseo-mo/src/neighborhood/moIndexNeighbor.h b/trunk/paradiseo-mo/src/neighborhood/moIndexNeighbor.h index eabcf0de0..e4e7448bb 100644 --- a/trunk/paradiseo-mo/src/neighborhood/moIndexNeighbor.h +++ b/trunk/paradiseo-mo/src/neighborhood/moIndexNeighbor.h @@ -64,7 +64,8 @@ public: * Assignment operator * @param _source the source neighbor */ - virtual moIndexNeighbor & operator=(const moIndexNeighbor & _source) { + + moIndexNeighbor & operator=(const moIndexNeighbor & _source) { moNeighbor::operator=(_source); this->key = _source.key ; return *this ; diff --git a/trunk/paradiseo-mo/src/neighborhood/moOrderNeighborhood.h b/trunk/paradiseo-mo/src/neighborhood/moOrderNeighborhood.h index f27d5bda3..8b5e556e6 100644 --- a/trunk/paradiseo-mo/src/neighborhood/moOrderNeighborhood.h +++ b/trunk/paradiseo-mo/src/neighborhood/moOrderNeighborhood.h @@ -110,7 +110,7 @@ public: /** * Setter the position in the Neighborhood */ - unsigned int setPosition(unsigned int _currentIndex) { + void setPosition(unsigned int _currentIndex) { currentIndex=_currentIndex; }