From a2b794a7cf7672f0c7724da26d95d3a4544ed19f Mon Sep 17 00:00:00 2001 From: srn Date: Thu, 7 Apr 2005 09:18:10 +0000 Subject: [PATCH] Added const modificator for Name method --- src/SALOMEDSImpl/SALOMEDSImpl_SObject.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_SObject.hxx b/src/SALOMEDSImpl/SALOMEDSImpl_SObject.hxx index be8bc6c48..a69e6191f 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_SObject.hxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_SObject.hxx @@ -46,7 +46,7 @@ public: virtual Handle(SALOMEDSImpl_Study) GetStudy() ; virtual TCollection_AsciiString Name() { return _name; } - virtual void Name(TCollection_AsciiString& theName) { _name = theName; } + virtual void Name(const TCollection_AsciiString& theName) { _name = theName; } virtual Handle(TColStd_HSequenceOfTransient) GetAllAttributes(); virtual TCollection_AsciiString GetName(); -- 2.39.2