From 7771f4d41778d9010ee716fe11162bd121836f53 Mon Sep 17 00:00:00 2001 From: astrojhgu Date: Thu, 4 Nov 2010 16:56:28 +0000 Subject: git-svn-id: file:///home/svn/opt_utilities@141 ed2142bd-67ad-457f-ba7c-d818d4011675 --- core/fitter.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core') diff --git a/core/fitter.hpp b/core/fitter.hpp index 7234ff4..996d4c1 100644 --- a/core/fitter.hpp +++ b/core/fitter.hpp @@ -382,6 +382,10 @@ namespace opt_utilities */ param_info& operator=(const param_info& rhs) { + if(this==&rhs) + { + return *this; + } name=rhs.name; description=rhs.description; opt_eq(value,rhs.value); -- cgit v1.2.2